Network error when sending media files using a telegram bot

[5] Retrying “upload.SaveFilePart” due to Value after * must be an iterable, not NoneType
Value after * must be an iterable, not NoneType
Unable to connect due to network issues: [Errno 104] Connection reset by peer
[5] Retrying “upload.GetFile” due to Value after * must be an iterable, not NoneType
[5] Retrying “upload.SaveFilePart” due to TimeoutError()

I’m getting this error when I try to send media from a file using telegram bot, it’s a network problem, please replit fix it

This doesn’t seem to be an error with Replit but an error with your code. Can you send the link to your Repl?

If it’s true in my code why did it just happen, I only used send_photo() why did an error like that appear

My repl : https://replit.com/@LucasID26/Asta-Robot?s=app

It now happens when trying to await bot.send_video(message.chat.id,open("downloads/filevideo.mp4","rb"))

Probably because send_photo might call those. I’ll take a look.

Where did you call it BTW?

Folder Asta/plugins/scrape_sharing function is_antri
there is a video download process from telegram on successful downloads now there is an error problem that I mentioned above on send_video