Push RSS Feed through Telegram.
To use this project, we highly recommend to use Github Action instead of deploy on your own server.
Please fork this repository instead of creating Pull Requests.
- Open your repository and click
Settings
. - Select
Secrets
→Action
. - Click
New repository secret
. - Name the secret
TELEGRAM_TOKEN
, and value is the API Token from @BotFather of your telegram bot.
- Clone your repository.
- Run these commands below (Require Python 3.7 or higher).
pip install -r requirements.txt python tools.py get_chat_id
- Send a message to your bot, and you should be able to see you username and a string of numbers, that numbers are your
chat_id
.
Open config.yml
. It's a yaml file, inside is my own RSS list. If you don't know what is yaml, we recommend you to learn it first from here, especially how to use anchors&
and references*
.
The config.yml
currently has two fields.
The rss_groups
contains groups that allow you to put multiple RSS sources into a "category". If two (or more) users subscribe some of the same sources, you can put thoses sources into a group and use anchors&
and refrences*
to add sources to users.
rss_groups:
group_1: &anchor_1
rss_1: rss_1_url
rss_2: rss_2_url
group_2: &anchor_2
rss_3: rss_3_url
The chat_ids
contains chat_id
of each user. you can add rss group to user, or just add delicated rss sources in it.
chat_ids:
your_chat_id:
<<: *anchor_1
rss_4: rss_4_url
- Back to your repository, Click
Actions
. - Click
I understand my workflows, go ahead and enable them
. - Select
TGRSS_Action
on the left side. - Click
Enable workflow
.
You have successfully set up your own Telegram RSS!