Skip to content

Every 30 minutes

Post new articles from a feed to Teams and Telegram

Each new article in your feed is posted with a short summary to your Teams channel and your Telegram channel.

Runs
Every 30 minutes
Apps
Microsoft Teams, Telegram
AI
Yes, uses the built-in AI allowance
Access
Teams ChannelMessage.Send; Telegram bot added to the channel

Send this to your assistant

Create a ClickRuntime automation: when a new item appears in my blog's RSS feed, summarise it and post it to our Teams channel and our 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 small company publishes articles on its blog, but staff learn about them in Teams and customers follow updates on a Telegram channel. Someone has to remember to share each new post in both places, write a line about it, and paste the link. When they are busy or away, posts go out unnoticed.

This automation checks your feed every 30 minutes. When a new article appears, AI writes a short summary and the post is shared in your Teams channel and your Telegram channel at the same time.

What you get out of it

  • Every article gets shared

    Nothing depends on someone remembering. Posts published late on a Friday reach both audiences just like the rest.

  • Staff and customers hear together

    Your team learns about new content at the same moment as your followers. Nobody is caught out when a customer mentions an article.

  • A summary, not just a link

    A couple of sentences explain what the article is about. More people click when they know why it is worth reading.

  • One source, two channels

    You publish once on your blog and the sharing follows. There is no copying the same text into two apps.

How it works

What happens, step by step

  1. Every 30 minutes, ClickRuntime reads your feed and skips articles it has already shared.

  2. AI writes a short summary of each new article.

  3. The summary and link are posted to your Teams channel.

  4. The same post is sent to your Telegram channel.

Before it runs live

  • Connect Microsoft Teams
  • Connect Telegram

What you get

RunsEvery 30 minutes
Post new articles from a feed to Teams and Telegramtoday, 9:00Succeeded
Telegram · Contoso NewsHow Contoso cut delivery times in half: a look at the new regional warehouses and what changes for customers.

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 Microsoft Teams 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.
cross_post_new_content_to_teams_and_telegram.pyexample
import feedparser
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched

FEED = "https://blog.example.com/feed.xml"
TEAM_ID, CHANNEL_ID = "your-team-id", "your-channel-id"
TELEGRAM_CHAT = "@your_channel"

@on_trigger
def run(event):
    seen = set(state.get("seen") or [])
    items = [e for e in feedparser.parse(http.get(FEED).content).entries if e.link not in seen]
    report_fetched(len(items))
    if not items:
        return {"summary": "Nothing new"}
    graph = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
    token = credentials.secret("TELEGRAM_BOT_TOKEN")
    for e in items[:5]:
        try:
            blurb = ai.generate(f"{e.title}\n{e.get('summary', '')[:2000]}", system="Summarise in 2 sentences.", max_output_tokens=120).text.strip()
        except ai.AIError:
            blurb = e.title
        http.post(f"https://graph.microsoft.com/v1.0/teams/{TEAM_ID}/channels/{CHANNEL_ID}/messages", headers=graph,
                  json={"body": {"contentType": "html", "content": f"<b>{e.title}</b><br>{blurb}<br><a href='{e.link}'>{e.link}</a>"}})
        http.post(f"https://api.telegram.org/bot{token}/sendMessage", json={"chat_id": TELEGRAM_CHAT, "text": f"{e.title}\n\n{blurb}\n{e.link}"})
    state.set("seen", (list(seen) + [e.link for e in items])[-300:])
    return {"posted": min(len(items), 5)}

FAQ

Common questions

Which feeds work?
Any RSS or Atom feed, such as a blog, a podcast or a news page. Most website platforms provide one automatically.
Will old articles be posted when I start?
Only a handful of the most recent articles are shared on the first run. After that, each article is shared once, when it first appears in the feed.
Can the summary be in another language?
Yes. The summary can be written in the language your Telegram audience reads, while the link points to the original article.
What permissions does it need?
Teams ChannelMessage.Send; Telegram bot added to the channel. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly 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 “Post new articles from a feed to Teams and Telegram” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.