more reconnection attempts instead timeout

This commit is contained in:
Your Name 2024-12-14 23:53:39 +03:00
parent 8118e2ec9c
commit 6bb1183caa

View file

@ -105,7 +105,7 @@ class states:
@logger.catch @logger.catch
async def main(): 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" client.parse_mode = "HTML"
logger.success('User-Bot started') logger.success('User-Bot started')
me = await client.get_me() me = await client.get_me()