From 6bb1183caac30f740a25badf2bed20b391ac47c7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 14 Dec 2024 23:53:39 +0300 Subject: [PATCH] more reconnection attempts instead timeout --- ubot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot.py b/ubot.py index 1adcccd..e8b2d7e 100644 --- a/ubot.py +++ b/ubot.py @@ -105,7 +105,7 @@ class states: @logger.catch async def main(): - async with TelegramClient(sessdb, api_id, api_hash, timeout=300) as client: + async with TelegramClient(sessdb, api_id, api_hash, connection_retries=300, request_retries=10,) as client: client.parse_mode = "HTML" logger.success('User-Bot started') me = await client.get_me()