nonoo / yt-dlp-telegram-bot

Downloads videos using yt-dlp and re-uploads them to Telegram, so they can be viewed with Telegram's built-in video player.
MIT License
28 stars 4 forks source link

Uploading context deadline exceeded #1

Closed MaxBu closed 11 months ago

MaxBu commented 11 months ago

Hello. Thank you for this bot! I was test your bot on 1 core + 4GB RAM server. I was try to download video from vimeo it take 415909810 bytes then on uploading I've got error "uploading context deadline exceeded" at 60% of uploading process. I monitored the RAM consumption and it did not exceed 3GB. Does the bot have restrictions on uploading a file or this is telegram API limitation?

nonoo commented 11 months ago

Currently a job (download + conversion + upload) has to complete in 5 minutes as defined in dl.go:12 (const downloadAndConvertTimeout = 5 * time.Minute). Edit the const if you need a longer timeout.

MaxBu commented 11 months ago

thanks!