make telegram updater more robust

This commit is contained in:
gcarq 2017-06-09 01:06:29 +02:00
parent 7b0296ad52
commit 65c3adeab7

View File

@ -286,7 +286,12 @@ class TelegramHandler(object):
]
for handle in handles:
TelegramHandler.get_updater(conf).dispatcher.add_handler(handle)
TelegramHandler.get_updater(conf).start_polling(clean=True, bootstrap_retries=3)
TelegramHandler.get_updater(conf).start_polling(
clean=True,
bootstrap_retries=3,
timeout=30,
read_latency=60,
)
logger.info('TelegramHandler is listening for following commands: {}'
.format([h.command for h in handles]))