Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every 5 minutes, ClickRuntime checks the feeds you follow for posts.

  2. Posts it has already shared are skipped; if nothing is new, it stops there.

  3. If you turned on filtering, AI keeps only posts that match the topic you described.

  4. Each new post is sent to your Discord channel and your Telegram channel.

Before it runs live

  • Connect Discord
  • Connect Telegram

What you get

RunsEvery 5 minutes
Send new posts from a feed to Discord and Telegramtoday, 9:00Succeeded
Telegram · CommunityContoso v3.2 released with offline mode https://blog.contoso.example/v3-2

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
social_account_and_feed_monitor_to_both_chats.pyexample
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?
Anything with an RSS or Atom feed, which includes subreddits, blogs, YouTube channels, many news sites and exchange announcement pages.
Can I follow more than one source?
Yes. You can list several feeds and they are all checked on each run, with each post labelled by its source.
How is a post shown in the chats?
As the post title, its source and a link. Discord and Telegram both show a link preview where the source provides one.
What permissions does it need?
send messages in both. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.