// guides

YouTube new video notifications in Telegram (free, with or without Shorts)

Get a Telegram message in your chat, group or channel each time a YouTube channel uploads. Uses YouTube's public RSS feed, a BotFather token and one free tested script. No API key, nothing to host.

Updated 2026-10-18 · 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 Telegram bot

    Open @BotFather in Telegram, send /newbot, choose a name and a username ending in bot, and copy the token (it looks like 123456789:AA...). Keep it private: anyone with it can post as your bot.

  2. Choose where the alerts go

    For a private chat, send your bot any message, open https://api.telegram.org/botYOUR_TOKEN/getUpdates and copy the number in "chat":{"id":...}. For a group, add the bot and use the group's negative id. To auto-post to your own channel, add the bot as an admin and use @yourchannel. More detail in RSS to Telegram.

  3. Get the channel's feed URL

    Find the channel id (it starts with UC): on the channel page choose Share channel → Copy channel ID, or view the page source and search for channel_id=. The feed is https://www.youtube.com/feeds/videos.xml?channel_id=UC.... Want normal videos only, without Shorts? Use https://www.youtube.com/feeds/videos.xml?playlist_id=UULF..., replacing the UC at the start of the id with UULF (details below).

  4. Download the agent and do a dry run

    Get the free RSS to Discord agent. Despite the name, it posts to Telegram and Slack too. Copy .env.example to .env, set FEEDS to one or more feed URLs (comma-separated), TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID, and leave DISCORD_WEBHOOK_URL empty. Run python3 rss_to_discord.py --dry-run to see the latest videos it would send.

  5. Run it every 15 minutes

    The first real run only remembers the videos already in the feed, so your chat isn't flooded. After that, each new upload is sent once. Schedule it with cron, Windows Task Scheduler or a free GitHub Actions schedule:

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

An example .env

FEEDS=https://www.youtube.com/feeds/videos.xml?playlist_id=UULF_x5XG1OV2P6uZZ5FSM9Ttw
KEYWORDS=
TELEGRAM_BOT_TOKEN=123456789:AA...
TELEGRAM_CHAT_ID=@yourchannel
DISCORD_WEBHOOK_URL=

Each Telegram message is the video title in bold plus its link, so Telegram shows the video preview underneath.

Skip Shorts (or get only Shorts)

The normal channel feed mixes regular videos and Shorts. YouTube also publishes playlist feeds built from the same channel id: swap the leading UC for UULF to get regular videos only, or UUSH for Shorts only. When we checked the Google for Developers channel (UC_x5XG1OV2P6uZZ5FSM9Ttw) on 18 October 2026, its channel_id feed listed Shorts first, the UULF_x5XG1OV2P6uZZ5FSM9Ttw feed returned 15 entries that were all youtube.com/watch videos, and the UUSH one returned only youtube.com/shorts links. These playlist feeds aren't documented by YouTube, so if one ever stops working, fall back to the channel_id feed.

What we tested

On 18 October 2026 we ran the agent against the real feed of that channel, with Telegram replaced by a local stand-in for the Bot API and TELEGRAM_CHAT_ID=@mychannel. The dry run printed the newest titles and links. The first real run remembered all 15 videos and sent nothing. When we made two videos look new, the next run sent two sendMessage calls; the first attempt got 429 Too Many Requests, and the script waited the retry_after Telegram gave and resent it. The run after that sent nothing. With KEYWORDS=music, only the matching title was sent.

Several channels, filters, other apps

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 a YouTube API key?

No. Channel RSS feeds are public and have no key or quota.

How fast will the message arrive?

The feed usually shows a new upload within minutes. With a 15-minute schedule, expect the Telegram message 15 to 30 minutes after the video goes live.

Can I auto-post new videos to my Telegram channel?

Yes. Add your bot as an admin of the channel with permission to post, and set TELEGRAM_CHAT_ID to @yourchannel or its -100... id.

How do I stop Shorts from being posted?

Use the playlist feed with UULF instead of UC at the start of the channel id. It lists regular videos only.

Do I need a server or a bot running all the time?

No. The script calls Telegram only when there's a new video, then exits. Your PC, a Raspberry Pi or a free GitHub Actions schedule can run it.

Is it free?

Yes. YouTube feeds and the Telegram Bot API are free, and the agent is MIT-licensed.

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.