Every 5 minutes
Send new posts from a feed to Discord and Telegram
New posts from an account, subreddit or feed you follow appear in your Discord and Telegram channels within minutes.
- Runs
- Every 5 minutes
- Apps
- Discord, Telegram
- AI
- Optional
- Access
- send messages in both
Send this to your assistant
Create a ClickRuntime automation: every 5 minutes, check this feed for new posts and send each one to my Discord channel and my Telegram channel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A community manager runs both a Discord server and a Telegram group for the same audience. When the project's announcement account or a relevant subreddit posts something, members expect to see it in both places. Doing that by hand means watching the source all day and copying each post twice, and some posts are shared hours late or not at all.
This automation checks the source every few minutes and posts anything new to both chats at once. Both communities get the same news at the same time, without anyone watching a feed.
What you get out of it
Both communities stay in step
Every new post reaches Discord and Telegram together. Neither group feels like the second-class channel.
News arrives within minutes
Members see announcements shortly after they are published. That matters for launches, listings and time-sensitive updates.
Nothing is posted twice
Posts already shared are remembered, so a source that edits or reorders items does not cause repeats. The chats stay clean.
Optional filtering for relevance
For busy sources such as a large subreddit, AI can keep only posts that match your topic. Members get signal, not every post.
How it works
What happens, step by step
Every 5 minutes, ClickRuntime checks the feeds you follow for posts.
Posts it has already shared are skipped; if nothing is new, it stops there.
If you turned on filtering, AI keeps only posts that match the topic you described.
Each new post is sent to your Discord channel and your Telegram channel.
Before it runs live
- Connect Discord
- Connect Telegram
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
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Discord and Telegram steps into one automation
Under the hood
The code that runs this automation
import feedparser
from clickruntime import on_trigger, credentials, http, state, report_fetched
FEEDS = ["https://www.reddit.com/r/selfhosted/new/.rss"]
DISCORD_CHANNEL_ID = "your-discord-channel-id"
TELEGRAM_CHAT_ID = "your-telegram-chat-id"
@on_trigger
def run(event):
seen = state.get("seen") or []
new = []
for url in FEEDS:
for e in feedparser.parse(http.get(url, headers={"User-Agent": "clickruntime-feed"}).text).entries:
key = e.get("id") or e.get("link")
if key and key not in seen and key not in [k for k, _ in new]:
new.append((key, f"{e.get('title', '')}\n{e.get('link', '')}"))
report_fetched(len(new))
if not new:
return {"new": 0}
bot = credentials.secret("TELEGRAM_BOT_TOKEN")
for _, text in reversed(new):
http.post(f"https://discord.com/api/v10/channels/{DISCORD_CHANNEL_ID}/messages",
headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"}, json={"content": text[:2000]})
http.post(f"https://api.telegram.org/bot{bot}/sendMessage", json={"chat_id": TELEGRAM_CHAT_ID, "text": text})
state.set("seen", (seen + [k for k, _ in new])[-1000:])
return {"new": len(new)}FAQ
Common questions
What kinds of sources can it follow?
Can I follow more than one source?
How is a post shown in the chats?
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
Announce new blog posts on Discord and Telegram
Each article you publish is posted to your Discord server and Telegram channel with its title, link and a short teaser.
See how it worksGet Discord and Telegram alerts when Notion statuses change
When an item in your Notion database changes status, a message goes to Discord and Telegram saying what moved and where.
See how it worksSend error alerts to Discord and Telegram
When a job or system fails, your team sees the details in Discord and you get them on Telegram, wherever you are.
See how it worksKeep exploring
Set up “Send new posts from a feed to Discord and Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.