Improved @YATubeBot's format selection to download the optimal quality settings to fit telegram's file limit of 50mb for video and songs.
The audio is always loaded in highest quality so both the merged video file and the mp3 version benefits.
Also fixed being able to queue more than one video at a time unintentionally.
This should make the bot far more stable and faster.
#YATube#update
Updated @YATubeBot to be more clear of errors related to upload size.
Will now handle file size related upload errors more transparent, telling you exactly what's going on, instead of just stopping sending any updates after "Uploading...".
Now it will check file size before uploading, and also handle rare errors raised (in an unspecified way) by telegram.
Technical background:
The telegram API returns a HTML error message instead of the usual json response, which of course isn't mentioned anywere in the API documentation. This broke pytgbot, the library used to interact with the API. The package was fixed to be able to handle that. Now also provides the file size of the file to upload in an easy accessable way, so that the upload size can be checked before uploading.
#update#YATube#pytgbot#TechnicalDetails
Downtime yesterday
TL;DR: After a restart, not all services got back online.
Turns out, when I refreshed my docker-machine certificates, which it uses to securely talk to my remote server, it had to restart docker. Those certificates work for 3 years and have to be recreated if they expire. (Wow, I'm working with telegram bots for a while now, huh?)
Somehow some services (e.g. @YATubeBot, @ForwardWhitelistBot) didn't restart, and the @StickerTagBot even reverted to a old version from last year.
Anyway I redeployed the correct version.
If something else isn't running how it used to, please contact me personally @luckydonald.
#downtime#TechnicalDetails#YATube#ForwardWhitelist#StickerTag