Make your own reddit channel on telegram
- A reddit bot
- A telegram bot
- A telegram channel (you can just use your username in place of a channel)
- (optional) A hosting platform like heroku
Install requirements using
pip install -r requirements.txt
- Create a reddit API Token here. Note down the client id under the app name, and client secret in the 'edit' option.
- Create a telegram bot using @botfather. Note down the HTTP API Token.
- Create a channel in telegram. Note the @username of the channel.
- Add all the tokens into settings.py
- Add all the subreddits you want into settings.py
- Run the app.
python app.py
- Create a new app on heroku
- Deploy using git
git push heroku master
- Add a heroku scheduler
heroku addons:create scheduler:standard
- Open the scheduler dashboard
heroku addons:open scheduler
- Add a new job.
Dyno Size : Free
Frequency : Daily
command : python app.py
- Enjoy your private reddit channel
[ Currently the code is designed to fetch 'top 5 posts of the day with upvotes > 10' ]