Every 30 minutes
Get new YouTube uploads from your favourite channels in Telegram
Every new video from the channels you follow is posted to your Telegram chat or channel with its title and link.
- Runs
- Every 30 minutes
- Apps
- Telegram, YouTube
- AI
- Not needed
- Access
- API key; bot token
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, check these YouTube channels for new videos and post each new one to my Telegram channel with its title and link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A community runs a Telegram channel for fans of a handful of creators. Members want to know the moment a new video drops. The admins currently post the links by hand, which means delays overnight and missed uploads at weekends.
Posting each new upload automatically keeps the community channel current around the clock, and lets admins spend their time on conversation instead of links.
What you get out of it
Never miss an upload
New videos appear in Telegram within half an hour, day or night.
Admins get their time back
Nobody has to watch the channels and copy links across.
Each video posted once
Videos already shared are remembered, so the channel never gets duplicates.
Works for any public channel
You can follow your own channel, partners or creators you admire.
How it works
What happens, step by step
Every 30 minutes, ClickRuntime checks the latest uploads of each channel you listed.
It skips videos it has already posted.
Each new video is sent to your Telegram chat or channel with its title and link.
It remembers the videos it has posted, so each one is shared once.
Before it runs live
- Connect Telegram
- Connect YouTube
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Telegram and YouTube steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, report_fetched, http, credentials, state
YT = "https://www.googleapis.com/youtube/v3"
def yt(path, **params):
return http.get(f"{YT}/{path}", params={**params, "key": credentials.secret("YOUTUBE_API_KEY")}).json().get("items", [])
CHAT_ID = "123456789"
def tg(method, **params):
r = http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=params)
return r.raise_for_status() or r.json()["result"]
UPLOADS = ["UUxxxxxxxxxxxxxxxxxxxxxx", "UUyyyyyyyyyyyyyyyyyyyyyy"]
@on_trigger
def run(event):
seen = set(state.get("seen") or [])
new = []
for playlist in UPLOADS:
for item in yt("playlistItems", part="snippet", playlistId=playlist, maxResults=5):
s = item["snippet"]
if s["resourceId"]["videoId"] not in seen:
new.append(s)
report_fetched(len(new))
if not new:
return {"summary": "No new videos"}
for s in reversed(new):
vid = s["resourceId"]["videoId"]
tg("sendMessage", chat_id=CHAT_ID, text=f"🎬 {s['channelTitle']}: {s['title']}\nhttps://youtu.be/{vid}")
seen.add(vid)
state.set("seen", sorted(seen)[-3000:])
return {"posted": len(new)}FAQ
Common questions
How quickly do new videos appear?
Can it post to a group as well as a channel?
Does it include Shorts and live streams?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Publish videos from a Drive folder with AI titles and a Telegram ping
Drop a video into a Drive folder and it goes to YouTube with an AI-written title and description, with a Telegram message when it is live.
See how it worksBuild a daily playlist from your favourite channels
Each morning a fresh YouTube playlist of the last day's videos from channels you choose is created, and the link lands in Telegram.
See how it worksSend a YouTube link to Telegram and get a summary back
Share a YouTube link with your Telegram bot and it replies with a short summary and the key points.
See how it worksKeep exploring
Set up “Get new YouTube uploads from your favourite channels in Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.