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
1 changed files with 1 additions and 1 deletions

View File

@ -2116,7 +2116,7 @@ class AsyncTeleBot:
from telebot.ext.aio import AsyncWebhookListener
except (NameError, ImportError):
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()