Skip to content

DanielHCheung/tgbot-RSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgbot-RSS

A Python Telegram bot with a Flask web panel for tracking RSS feeds, Reddit users, X users, and generic sources. Uses SQLite for storage.

Setup

  1. Install dependencies:
    python -m pip install -r requirements.txt
    Requirements now include the python-telegram-bot[job-queue] extra.
  2. Copy .env and set BOT_TOKEN.
  3. Run the web panel:
    python -m src.web
  4. Run the bot:
    python -m src.bot

Features

  • Track sources by type: rss, reddit_user, x_user, generic
  • Subscribe a chat via /subscribe or /start
  • Subscribe a channel via /subscribechannel @channel_name or through the web panel
  • Unsubscribe via /unsubscribe
  • Add sources with /addsource
  • Manage sources and subscriptions in the web panel

Bot Commands

  • /start - Subscribe the current chat
  • /subscribe - Subscribe the current chat to updates
  • /subscribechannel <@username|chat_id> - Subscribe a channel (bot must be admin)
  • /unsubscribe - Unsubscribe the current chat
  • /addsource <type> <identifier> [name] - Add a new feed source
  • /removesource <id> - Remove a source
  • /sources - List all tracked sources
  • /status - Show bot statistics

Notes

  • The bot polls feeds periodically using FETCH_INTERVAL from .env.
  • The database is stored in data.db by default.
  • For channel subscriptions, the bot must be an admin in the channel to post messages.
  • Channel usernames can be specified with @ prefix (e.g., @mychannel) or use the channel's negative ID (e.g., -1001234567890).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors