Skip to content

Make your own reddit channel on telegram

Notifications You must be signed in to change notification settings

RasyiidWho/retel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

retel

Make your own reddit channel on telegram

Prerequisites

  • 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

Requirements

Install requirements using

pip install -r requirements.txt

How to setup

  • 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

How to host

Heroku

  • 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' ]

About

Make your own reddit channel on telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%