Skip to content

Publishes RSS feed updates to a Telegram channel using nodejs

Notifications You must be signed in to change notification settings

xorus/rss-to-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rss-to-telegram

Publishes new items from an RSS feed to a telegram chat (group, channel, direct).

Config

Create a config.json file containing:

{
  "published_database": "published-posts.json",
  "source": {
    "feed": "your-feed-url (with http or https)",
    "refresh_interval": 6000
  },
  "telegram": {
    "token": "your bot token",
    "channel": your chat id
  }
}
  • published_database: The json file that will contain already sent item updates from the feed

  • feed: URI pointing to the RSS feed

  • refresh_interval: Delay between two feed update in milliseconds

  • token: Telegram bot token (get one @BotFather)

  • channel: Telegram chat id (must be an integer API id)

  • status_monitor_port: If set, will open a simple webserver that always responds 200 on that port. This can be used as a way to determine if this service is still running via e.g. uptime robot.

Run

  1. npm install

  2. npm start

About

Publishes RSS feed updates to a Telegram channel using nodejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published