mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update async_telebot.py
This commit is contained in:
parent
add240adfd
commit
171172d12e
@ -2116,7 +2116,7 @@ class AsyncTeleBot:
|
|||||||
from telebot.ext.aio import AsyncWebhookListener
|
from telebot.ext.aio import AsyncWebhookListener
|
||||||
except (NameError, ImportError):
|
except (NameError, ImportError):
|
||||||
raise ImportError("Please install uvicorn and fastapi in order to use `run_webhooks` method.")
|
raise ImportError("Please install uvicorn and fastapi in order to use `run_webhooks` method.")
|
||||||
self.webhook_listener = AsyncWebhookListener(self, secret_token, listen, port, ssl_context, '/'+url_path, debug)
|
self.webhook_listener = AsyncWebhookListener(self, secret_token, listen, port, ssl_context, '/'+url_path)
|
||||||
await self.webhook_listener.run_app()
|
await self.webhook_listener.run_app()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user