From 6cfb846e811df18db7deccde73c0d0e168663fb0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 10 Dec 2024 18:55:42 +0300 Subject: [PATCH] fix for ADSL and other unstable connections --- ubot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot.py b/ubot.py index 50ed678..5692d5d 100644 --- a/ubot.py +++ b/ubot.py @@ -60,7 +60,7 @@ class states: @logger.catch async def main(): - async with TelegramClient(sessdb, api_id, api_hash) as client: + async with TelegramClient(sessdb, api_id, api_hash, timeout=300) as client: client.parse_mode = "HTML" logger.success('User-Bot started') me = await client.get_me()