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) )