Files
Birthday-Pool-Bot/birthday_pool_bot/telegram_bot/polling/service.py

11 lines
372 B
Python

from birthday_pool_bot.telegram_bot.base import BaseTelegramBotService
class TelegramBotPollingService(BaseTelegramBotService):
async def listen_events(self):
await self._bot.delete_webhook()
await self._dispatcher._polling( # pylint: disable=protected-access
bot=self._bot,
polling_timeout=self._settings.timeout,
)