Fix bugs, add README and Makefile
This commit is contained in:
@@ -3,6 +3,7 @@ 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,
|
||||
|
||||
@@ -8,7 +8,7 @@ from birthday_pool_bot.telegram_bot.settings import TelegramBotSettings
|
||||
|
||||
class TelegramBotPollingSettings(TelegramBotSettings):
|
||||
method: Literal[TelegramBotMethodEnum.POLLING.value] = (
|
||||
TelegramBotMethodEnum.POLLING
|
||||
TelegramBotMethodEnum.POLLING.value
|
||||
)
|
||||
|
||||
timeout: PositiveInt = 10 # in seconds
|
||||
|
||||
Reference in New Issue
Block a user