-
I wrote something like this: bot.send_media_group(msg.chat.id, media_group)
.await
.unwrap(); But I always got
I found some similar situations: https://stackoverflow.com/questions/68390839/timedout-in-python-telegram-bot-but-message-is-sent I also found doc about timeout, but it cannot be used on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Timeout of There isn't yet a way to change the http timeout on a by-request basis. You'll have to change the timeout for the whole bot, or create a separate bot. When changing reqwest settings please check |
Beta Was this translation helpful? Give feedback.
Thanks for your help! I finally understand the correct way to use
send_media_group()
with local api server now.Telegram bot app should run on the same local network with local api server. And timeout is unnecessary at all.
TimeOut error mainly occurs when bot runs from Internet. When run on the local network, it is OK to dismiss this error.