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()