This is a telegram bot that downloads a youtube shorts video when a link is sent and sends it back to the telegram chat. This is the source code for @shortsontgBot
pip install -r requirements.txt
Replace the value of the string in line 45 to the BOT_TOKEN given by @Botfather
@shortsontgBot along with 4 other bots are hosted on a small $6 ubuntu server on vultr. To run multiple bots at the same time "screen" is used
Screen : Creates a new screen Pressing ctrl+A+D : Detaches from the screen (The Bot stays running within that screen)
To later access the detached screen we should be listing all of them and finding the right screen: Screen -list : Lists all screens
Git clone is used to get the code from main pc to the server Once it is cloned goto @botfather and revoke all tokens do a nano for the python files and rewrite the tokens