#telegram-bot #rss #activities #translation #layer #mind #next-cloud

bin+lib rss2tg

RSS to telegram translation layer. Developed with Nextcloud Activities in mind.

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

#11 in #next-cloud

GPL-3.0 license

17KB
198 lines

rss2tg

Crates.io Status

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 name
  • YOUR_NEXTCLOUD_ACTIVITIES_TOKEN is token from your nextcloud activity tab -> settings -> Enable RSS feed
  • YOUR_TELEGRAM_BOT_TOKEN is token for bot you've registered in telegram through @BotFather
  • TARGET_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

~13–21MB
~396K SLoC