// guides

Send RSS feeds to Telegram with a keyword filter (free, no bot hosting)

Get new RSS or Atom posts that match your keywords in a Telegram chat, group or channel. A BotFather token, your chat id and a free tested script. Nothing to keep online.

Updated 2026-10-16 · about 10 minutes

Rather not set it up yourself? Describe your task in one sentence and we'll build and test it for you, free →

Steps

  1. Create a bot with BotFather

    In Telegram, open @BotFather, send /newbot, pick a name and a username ending in bot. BotFather replies with a token like 123456789:AA.... Keep it secret: anyone with it can post as your bot.

  2. Find your chat id

    Send any message to your new bot (or add it to a group and send a message there), then open https://api.telegram.org/botYOUR_TOKEN/getUpdates in a browser and look for "chat":{"id":...}. A private chat id is a positive number; groups and channels start with a minus sign (supergroups and channels with -100). For a public channel you can also use @yourchannel, after adding the bot as an admin with permission to post.

  3. Download the free agent

    Get the free RSS to Discord agent. Despite the name, it also posts to Telegram and Slack. It's one Python file, standard library only, no server or bot process to keep running.

  4. Set your feeds, keywords and Telegram details

    Copy .env.example to .env and set FEEDS (comma-separated feed URLs), KEYWORDS (comma-separated, case-insensitive, matched in the title and summary; leave empty to get everything), TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID. You can leave DISCORD_WEBHOOK_URL empty. Check what would be sent with python3 rss_to_discord.py --dry-run.

  5. Run it on a schedule

    The first real run only remembers what's already in the feeds, so you don't get flooded. After that, each new matching item is sent once. Run it every 15 to 30 minutes:

    */15 * * * * cd /path/to/rss-to-discord && set -a && . ./.env && set +a && /usr/bin/python3 rss_to_discord.py >> run.log 2>&1

    No always-on computer? A GitHub Actions workflow with schedule: - cron: '*/15 * * * *' and your values as repository secrets works too (commit the seen_rss.json state file or cache it between runs, or every run will look like a first run).

An example .env

FEEDS=https://hnrss.org/newest?q=python,https://github.com/n8n-io/n8n/releases.atom
KEYWORDS=python,n8n@
TELEGRAM_BOT_TOKEN=123456789:AA...
TELEGRAM_CHAT_ID=-1001234567890
# optional: also post to Discord and/or Slack
DISCORD_WEBHOOK_URL=
SLACK_WEBHOOK_URL=

When we ran the dry run with the Hacker News search feed https://hnrss.org/newest?q=python and KEYWORDS=python, it printed only the matching new stories with their links. Each Telegram message is the item title in bold plus the link, sent with HTML formatting so titles containing < or & don't break it.

How the keyword filter works

Good to know

Skip the setup: free Telegram-ready download

The RSS to Discord agent does all of this. Despite the name, it sends to Telegram too: just set TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID and leave the Discord webhook empty. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.

Get the free agent for Telegram → Or have us build yours →

FAQ

Do I need to host a Telegram bot?

No. The script only calls Telegram's sendMessage API when there's something new, then exits. Nothing has to stay online between runs.

Can it send to several chats?

One TELEGRAM_CHAT_ID per copy. Run a second copy with its own .env and STATE_FILE for another chat, or post to a channel that everyone joins.

Can I get Discord or Slack too?

Yes. Set DISCORD_WEBHOOK_URL and/or SLACK_WEBHOOK_URL as well, and every new item goes to each of them.

Is it free?

Yes. The agent is MIT-licensed, and Telegram's Bot API is free to use.

Related guides

New guides

Want one built for your task?

Describe it in one sentence. We build it, test it and email it to you, usually within 24h. Free while we're in beta.

We'll only email you about your agent and TaskToAgent.