mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
retry telegram connection forever
This commit is contained in:
parent
2488cf6b07
commit
5d2759c63c
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class Alert:
|
|||
async def get_client() -> TelegramClient:
|
||||
config = cvars.config.get()
|
||||
api_id, api_hash, bot_token = config.telegram.creds.split(",")
|
||||
client = await TelegramClient(MemorySession(), api_id, api_hash).start(bot_token=bot_token)
|
||||
client = await TelegramClient(MemorySession(), api_id, api_hash, connection_retries=None).start(bot_token=bot_token)
|
||||
client.parse_mode = "html"
|
||||
return client
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue