From 550a1eef91a8685b586b8bdb85ebd52b71a5d030 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 31 Dec 2021 12:52:32 +0100 Subject: [PATCH] Reduce "cleanup" slowdown in telegram --- freqtrade/rpc/telegram.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index f333dc5db..61a0b1f65 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -199,8 +199,8 @@ class Telegram(RPCHandler): self._updater.start_polling( bootstrap_retries=-1, - timeout=30, - read_latency=60, + timeout=20, + read_latency=60, # Assumed transmission latency drop_pending_updates=True, ) logger.info( @@ -213,6 +213,7 @@ class Telegram(RPCHandler): Stops all running telegram threads. :return: None """ + # This can take up to `timeout` from the call to `start_polling`. self._updater.stop() def _format_buy_msg(self, msg: Dict[str, Any]) -> str: