Skip to content

A Telegram Bot that downloads and resends a video file on telegram when a shorts link is sent

Notifications You must be signed in to change notification settings

fauzaanu/Shorts_To_Telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

SHORTS TO TELEGRAM

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

INSTALLATION

pip install -r requirements.txt

USAGE

Replace the value of the string in line 45 to the BOT_TOKEN given by @Botfather

DEPLOYING THE BOT

@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 useful commands

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

Access Token Being Visible on Github

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

About

A Telegram Bot that downloads and resends a video file on telegram when a shorts link is sent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages