️ 增加请求超时时间

This commit is contained in:
xtaodada 2022-10-13 22:41:46 +08:00
parent 9ec05abb52
commit 356ccafe6c
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -40,4 +40,4 @@ bot = Client("bot", api_id=api_id, api_hash=api_hash, ipv6=ipv6, plugins=dict(ro
headers = { headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.72 Safari/537.36" "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.72 Safari/537.36"
} }
request = httpx.AsyncClient(timeout=10.0, headers=headers) request = httpx.AsyncClient(timeout=60.0, headers=headers)