make telegram updater more robust
This commit is contained in:
parent
7b0296ad52
commit
65c3adeab7
@ -286,7 +286,12 @@ class TelegramHandler(object):
|
|||||||
]
|
]
|
||||||
for handle in handles:
|
for handle in handles:
|
||||||
TelegramHandler.get_updater(conf).dispatcher.add_handler(handle)
|
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: {}'
|
logger.info('TelegramHandler is listening for following commands: {}'
|
||||||
.format([h.command for h in handles]))
|
.format([h.command for h in handles]))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user