Обновлены таймауты для отправки видео в Telegram, чтобы улучшить обработку больших файлов. Исправлены значения cookie для Instagram.
This commit is contained in:
parent
76ce3feecc
commit
e3b1dd0d1c
2 changed files with 8 additions and 4 deletions
6
bot.py
6
bot.py
|
|
@ -445,7 +445,11 @@ async def process_queue_item(item: QueueItem):
|
|||
await item.original_message.reply_video(
|
||||
video=video_file,
|
||||
caption=caption,
|
||||
supports_streaming=True
|
||||
supports_streaming=True,
|
||||
read_timeout=600, # 10 минут на ответ от Telegram
|
||||
write_timeout=600, # 10 минут на отправку файла
|
||||
connect_timeout=60,
|
||||
pool_timeout=60
|
||||
)
|
||||
video_file.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue