// guides

Twitch live notifications in Telegram: get a message when a streamer goes live

Your own Telegram alert for when your favourite Twitch streamers go live, in a private chat, group or channel. Twitch's official API, a BotFather token and one free tested script. 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, pick 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 alerts arrive

    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. For a channel, add the bot as an admin and use @yourchannel. More detail in RSS to Telegram.

  3. Register a free Twitch app

    Sign in at dev.twitch.tv/console (two-factor authentication must be on), choose Register Your Application, use http://localhost as the OAuth redirect URL and any category. Copy the Client ID and create a Client Secret. They only let the script ask Twitch who is live; they can't touch your account.

  4. Download the agent and see a demo

    Get the free Twitch live alert agent. Run python3 twitch_live_alert.py --demo to see what the alerts look like without any accounts, then copy .env.example to .env.

  5. Fill in .env and run it every 5 minutes

    Set TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET, CHANNELS (for example shroud,pokimane; full twitch.tv links work too), TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID. Leave DISCORD_WEBHOOK_URL empty if you only want Telegram. Try --dry-run once, then schedule it with cron (*/5 * * * *), Windows Task Scheduler or a free GitHub Actions schedule.

What arrives in Telegram

One plain-text message per stream, for example:

🔴 Alpha is live: Ranked grind
Playing Valorant · https://twitch.tv/alpha

Telegram usually shows a link preview for the stream. Plain text means odd characters in a stream title can't break the formatting, and an @everyone in a title is just text on Telegram.

What we tested

On 18 October 2026 we ran the agent against a stand-in for Twitch's token and Helix streams endpoints and for Telegram's Bot API, with TELEGRAM_CHAT_ID=@mychannel and no Discord webhook. Run 1: one channel live, one sendMessage (the first attempt got 429 Too Many Requests; the script waited the retry_after Telegram gave and resent once). Run 2: same stream still live, nothing sent. Run 3: a second streamer went live, only that one was sent. Runs 4 and 5: a new stream outside the GAMES filter, nothing sent. One app token was fetched and reused across all five runs.

Only some games, several destinations

Set GAMES=Valorant,Minecraft to be told only when a streamer plays those games. Add DISCORD_WEBHOOK_URL or SLACK_WEBHOOK_URL and the same alert goes there too; if one destination is down the others still get it. The Discord setup is in Twitch live notifications in Discord.

Why not the Twitch app's own notifications?

The Twitch app's push notifications work only on your own phone, for channels you follow, and they're easy to miss or get batched. A Telegram channel or group lets a whole community get the same alert, and you decide exactly which streamers and games count. It's also handy if you stream yourself: point it at your own channel and your Telegram followers get a message each time you go live.

Skip the setup: free download

The Twitch live alert agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.

Get the free Twitch live alert agent → Or have us build yours →

FAQ

Can Telegram notify me when a Twitch streamer goes live?

Not by itself. Something has to ask Twitch who is live and call Telegram's Bot API. This script does that every few minutes and needs no server between runs.

Do I need a Twitch API key?

Yes, a free Client ID and Client Secret from dev.twitch.tv/console. No viewer login or bot account is needed.

Will it post the same stream twice?

No. It remembers the id of each stream it announced, so you get one message per broadcast, and a new one the next time the streamer goes live.

Can it post to a Telegram channel?

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

How many streamers can I follow?

Up to 100 channels per Twitch request, and the script batches longer lists automatically.

Is it free?

Yes. Twitch's API, the Telegram Bot API and the agent (MIT licence) are all free.

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.