mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Small fixes to new telegram implementation
This commit is contained in:
parent
14b501a4f7
commit
cb45689c1d
|
@ -163,7 +163,7 @@ class Telegram(RPCHandler):
|
|||
registers all known command handlers
|
||||
and starts polling for message updates
|
||||
"""
|
||||
self._app = Application.builder().token(self._config['telegram']['token']).build
|
||||
self._app = Application.builder().token(self._config['telegram']['token']).build()
|
||||
# self._updater = Updater(token=, workers=0,
|
||||
# use_context=True)
|
||||
|
||||
|
@ -229,16 +229,16 @@ class Telegram(RPCHandler):
|
|||
for callback in callbacks:
|
||||
self._app.add_handler(callback)
|
||||
|
||||
self._app.run_polling(
|
||||
bootstrap_retries=-1,
|
||||
timeout=20,
|
||||
read_latency=60, # Assumed transmission latency
|
||||
drop_pending_updates=True,
|
||||
)
|
||||
logger.info(
|
||||
'rpc.telegram is listening for following commands: %s',
|
||||
[[x for x in sorted(h.commands)] for h in handles]
|
||||
)
|
||||
self._app.run_polling(
|
||||
bootstrap_retries=-1,
|
||||
timeout=20,
|
||||
# read_latency=60, # Assumed transmission latency
|
||||
drop_pending_updates=True,
|
||||
)
|
||||
|
||||
def cleanup(self) -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user