more reconnection attempts instead timeout
This commit is contained in:
parent
8118e2ec9c
commit
6bb1183caa
1 changed files with 1 additions and 1 deletions
2
ubot.py
2
ubot.py
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue