Fetch rss and send the latest update to telegram.
Project description
Telegram RSS
Fetch rss and send the latest update to telegram. This module is still in active development
Usage
Setup
- Make sure you have python installed.
- Open command line.
- Install
pip install --upgrade telegram-rss
- Run
python -m telegram_rss
- Add bot token, feeds, user's id, and/or channel's id inside telegram-rss/config.toml
- Run
python -m telegram_rss update
to send initial update (use personal id to send initial update)
If your system support entry_points, you can execute python -m telegram_rss
with telegram-rss
.
Sending update
Run python -m telegram_rss update
to check and send the latest
Example config
bot_token = "987654321:ASDASDASD-1sda2eas3asd-91sdajh28j"
env_token = "TOKEN"
users = [ 123456789,]
channels = [ -123456789,]
[[feeds]]
name = "Feed example online"
source = "http://feedparser.org/docs/examples/atom10.xml"
[[feeds]]
name = "Feed example local"
source = "c:\\incoming\\atom10.xml"
How to get token
Just create a new bot account using @BotFather. Don't forget to add the bot as channel's admin
How to get ids
Send / forward a message (user or channel) to @JsonDumpBot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
telegram-rss-0.2.2.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for telegram_rss-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb4ed7c1b4a0e4960acafe381695a7456e02f947a109f332e9f131d6db58a5f0 |
|
MD5 | b47f29c8c76463f7f628e666a55ac8a6 |
|
BLAKE2b-256 | 3bb668ff199cdcb4ec5ed2e93d073a8cde8c2a43f6bb324a0b384ff7165a8652 |