summaryrefslogtreecommitdiff
path: root/telegram_bot
diff options
context:
space:
mode:
Diffstat (limited to 'telegram_bot')
-rw-r--r--telegram_bot/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/telegram_bot/__init__.py b/telegram_bot/__init__.py
index ab9f61d..95b7af8 100644
--- a/telegram_bot/__init__.py
+++ b/telegram_bot/__init__.py
@@ -26,7 +26,10 @@ class TelegramBot:
exception_handler=ExceptionHandler())
async def run(self):
- await self.__bot.polling()
+ await self.__bot.polling(
+ non_stop=True,
+ timeout=100
+ )
def register_command_handler(self, command: str, command_handler: CommandHandler):
self.__bot.register_message_handler(