Basic Template for Bot with Pyrogram and Python. This Template is For Beginners like me ;)
**This Bot Can Be Deployed on VPS, to Heorku and Railway easily. **
Plz give it a star
- Fork and star the repo
- Go to main then edit
config.pyas below - Put respective values in
""and save.
API_ID = ""
API_HASH = ""
BOT_TOKEN = ""
- Now run following commands one by one...
sudo apt update
sudo apt install git python3-pip
git clone your_repo_link
cd you_repo_name
pip3 install -r requirements.txt
python3 -m PyroBot
- if you want bot to be running in background then enter
screen -S PyroBotbeforepython3 -m PyroBot - after
python3 -m PyroBot, clickctrl+A,ctrl+D - if you want to stop bot, then enter
screen -r PyroBotand to kill screen enterscreen -S PyroBot -X quit.
» Method - 1:
» Method - 2:
- Star the repo, rate and fork it in desktop mode
- create app in heroku
- go to settings of
app›› reveal config vars››add all variables as shown above by typing their correct name and value. - add buildpacks i.e.
pythonandhttps://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git - connect to github and deploy
- turn on dynos
- Note: you must add buildpack in heroku to get the original video thumbnail and to remove already set thumbnail otherwise you will get black video How to add?
- Go to heroku settings
- scroll down and click add buildpack
- now paste following link i.e
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.gitin input bar and click add buildpack - Now go back and redeploy
- Fork and star the repo
- edit
config.pysame as guided for VPS deployment (you can edit on render also by filling enviroment variables) - Go to render.com and singup/signin
- create new web service and select free plan
- connect github and your repository
- Click Deploy
- Done ✅
- See tutorial
- Fork and star the repo
- edit
config.pysame as guided for VPS deployment (you can edit on koyeb also by filling enviroment variables) - Go to koyeb.com and singup/signin
- create new web service make sure you must choose build type
Dokerfilebecause in Koyeb as a default it is checked tobuildpacksso you have to change that. - connect github and your repository
- Click Deploy
- Done ✅