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

``` lastguidfile = ".last_guid"

[[subscriptions]] rssurl = "https://YOURDOMAIN/apps/activity/rss.php?token=YOURNEXTCLOUDACTIVITIESTOKEN" bottoken = "YOURTELEGRAMBOTTOKEN" chatid = "TARGETTELEGRAMCHATID" lastguidfile = ".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) )