fix for ADSL and other unstable connections
This commit is contained in:
parent
14dfd2aec7
commit
6cfb846e81
1 changed files with 1 additions and 1 deletions
2
ubot.py
2
ubot.py
|
@ -60,7 +60,7 @@ class states:
|
||||||
|
|
||||||
@logger.catch
|
@logger.catch
|
||||||
async def main():
|
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"
|
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