5 releases
Uses old Rust 2015
0.2.3 | Mar 9, 2018 |
---|---|
0.2.2 | Mar 9, 2018 |
0.2.1 | Nov 8, 2017 |
0.2.0 | Nov 7, 2017 |
0.1.1 | Nov 3, 2017 |
#8 in #next-cloud
17KB
198 lines
rss2tg
RSS to telegram translation layer. Developed with Nextcloud Activities in mind.
Usage
To use this crate as a binary you should:
- get Telegram Bot Token
- add this bot to the conversation you want to write RSS feed to
- get id of this conversation
- add all of the above to the config file
Config example
last_guid_file = ".last_guid"
[[subscriptions]]
rss_url = "https://YOURDOMAIN/apps/activity/rss.php?token=YOUR_NEXTCLOUD_ACTIVITIES_TOKEN"
bot_token = "YOUR_TELEGRAM_BOT_TOKEN"
chat_id = "TARGET_TELEGRAM_CHAT_ID"
last_guid_file = ".last_guid"
where:
YOURDOMAIN
is your nextcloud instance domain nameYOUR_NEXTCLOUD_ACTIVITIES_TOKEN
is token from your nextcloud activity tab -> settings -> Enable RSS feedYOUR_TELEGRAM_BOT_TOKEN
is token for bot you've registered in telegram through @BotFatherTARGET_TELEGRAM_CHAT_ID
is id of chat you want your bot to write RSS to (if it's a group this id starts with-
(minus symbol) )
Dependencies
~12–22MB
~382K SLoC