A telegram bot that watches subreddits for particular post titles
Every 5 minutes it gets the newest posts for the specified subreddits and if the post titles match the regex then the telegram bot will notify the user.
- Supports watching of multiple subreddits at once
- Supports regex per subreddit
- Can also dump all text a user has written into reddit (comments/posts etc)
- Does not use Praw, hence no reddit credentials are required
- python-telegram-bot
- requests
Install the dependencies:
pip3 install -r requirements.txtGenerate a token for your bot by talking to the Telegram bot father. Change the token in the source code to that of your bot.
Run bot:
python3 bot.py/watch <subreddit name> <optional regex>- Add subreddit to your watchlist. If regex is not provided, all posts will be matched. If subreddit is already on the watchlist, the regex will be updated/unwatch <subreddit name>- Remove subreddit from watchlist/list- Show all subreddits on the watchlist/dump <reddit username>- Gets all text a user has written in reddit and sends it as a text file/enable- Start polling subreddits on watchlist for posts every 5 minutes. (Disabled by default)/disable- Stop polling subreddits/regshow <subreddit name>- Show regex used for a particular subreddit/regclear <subreddit name>- Clear regex used for a subreddit to match all posts/help- Show help message