1
0
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:
_run 2022-12-19 17:12:15 +04:00 committed by GitHub
parent add240adfd
commit 171172d12e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()