
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
telegram-rss-feed
Advanced tools
Ever wanted to have a bot that posts new RSS feed entries to a channel or group on telegram? Well, here you go.
Ever wanted to have a bot that posts new RSS feed entries to a channel or group on telegram? Well, here you go.
let's go easy on the dependencies, shall we?
for all of the dev dependencies, see the package.json, but the most important ones are:
docker run --rm \
-v /path/to/telegram-rss-feed/db:/app/db \
-e TELEGRAM_API_KEY=12345666:abcdefg \
-e TELEGRAM_CHANNEL_OR_GROUP=your-channel-or-group \
-e FEED_URL=https://test.test/awesomefeed.rss \
ghcr.io/simonneutert/telegram-rss-feed:main
$ docker build . \
--build-arg telegram_key=THIS123MY:TELEGRAMKEY \
--build-arg telegram_channel_or_group=@channel_or_groupnumber_on_telegram \
--build-arg feed_url=https://www.rss-feed.test/feed \
-t mytelegramrssbot
$ docker run --rm \
-v /path/to/telegram-rss-feed/db:/app/db \
mytelegramrssbot
Make sure to set the ENV variables just as you need it.
$ mkdir mytelegramrssbot
$ cd mytelegramrssbot
$ npm init
$ npm install telegram-rss-feed --save
$ touch index.js
// content of index.js
const { Db } = require("telegram-rss-feed/lib/db");
const { parseFeed } = require("telegram-rss-feed/lib/parseFeed");
const { sendMessage } = require("telegram-rss-feed/lib/sendMessage");
Db.sync() // { force: true } will be useful if you need to start from scratch
.then(() => {});
/**
* this function auto calls itself in an async fashion
*/
(async () => {
// you can also pass a custom function to handle the message sending
await parseFeed(
process.env.FEED_URL,
sendMessage, {
telegramApiKey: "12345666:abcdefg",
telegramChannelOrGroup: "@your-channel-or-group",
}
);
})();
Then run it with:
$ node index.js
FAQs
Ever wanted to have a bot that posts new RSS feed entries to a channel or group on telegram? Well, here you go.
We found that telegram-rss-feed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.