A bot to post messages to Telegram Groups or Channels from rss feed.
- This bot can also send /qbmirror commands to your mirror bot
bcoz bot can't read another bot's mag. So this bot will use your TG account to interact with mirror bot.
Fill
MIRROR_CHAT_ID
var to enable it.
- Edit the rss.py as your needs.
- Edit values in config.env or set it in Environment Variables. There is an template for
config.env
already exists just edit it and rename the file.
APP_ID
- Get it from my.telegram.orgAPI_HASH
- Get it from my.telegram.orgBOT_TOKEN
- Get it by creating a Telegram bot on BotFatherFEED_URLS
- List of URLs of RSS Feed, sperated by|
vertical bar.LOG_CHAT
- ID of the Telegram Chat where messages are to be posted.DATABASE_URL
- Here is a full guide. For Heroku, just add theHeroku Postgres
add-on.INTERVAL
- Checking Interval in seconds. (optional)MAX_INSTANCES
- Max instances to be used while checking rss feed. (optional)
These variabls are required only if you want to use your tg account to send /mirror cmd to any mirror bot.
MIRROR_CHAT_ID
- Group/chat_id of mirror chat or mirror bot to send mirror cmd.MIRROR_CMD
- if you have changed default cmd of mirror bot, replace this.
- Install requirements from requirements.txt
pip3 install -r requirements.txt
- Deploy
python3 rss.py
- Create Channel (Add your bot to your channel, automatically as admin )
- in Channel > Manage Channel > then Linked your group
- Add Bot to your group (as admin)
- in config.env MIRROR_CHAT_ID fill with channel ID (not group ID)
Use this along with RSSMirrorBot to use RSS Auto Mirror
Credits: Miss Emily