This was taken as a side project to learn how the pyrogram framework works The goal was to learn to send local media to telegram servers and provided to users through a bot
- Clone the repo
- Make sure you are on python 3.10.12 since that is the version I'm building this on
- Setup a virtual environment using
pipenv create
- Activate the virtual environment using
pipenv shell
- Install the dependencies using
pipenv install
- Create a
config.env
file and add the following variablesAPI_ID
: Your api id from my.telegram.orgAPI_HASH
: Your api hash from my.telegram.orgBOT_TOKEN
: Your bot token from @BotFatherSESSION_NAME
: A session name for your botSUDO_ID
: A comma seperated list of user ids who can use the botOWNER_ID
: A comma seperated list of owner ids who can use the bot
- Send local media to telegram cache channel
- Get the file_id of the media and send forward it to the user
- Make a database to log the userstats
- Integrate spotdl
- Integrate inline spotdl