Skip to content

The moment it happens

Mirror your Telegram channel posts to X

Whatever you post in your Telegram channel, text or photo, is posted on X too.

Runs
The moment it happens
Apps
Telegram, X
AI
Not needed
Access
bot admin in channel; tweet.write, media.write

Send this to your assistant

Create a ClickRuntime automation: whenever I post in my Telegram channel, post the same text and photo on my X account.

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

Many creators and communities run a Telegram channel as their main outlet and keep an X account for reach. Posting everything twice is tedious, so the X account falls behind and new people who find it there see a quiet profile.

Mirroring channel posts to X means you write once, in the place you prefer, and both audiences stay up to date.

What you get out of it

  • Write once

    You keep posting in Telegram as usual; X gets the same content without a second step.

  • An active X profile

    People who find you on X see a busy, current account, which helps them follow you or join your channel.

  • Photos come along too

    Images posted in the channel are uploaded to X with the text, so posts look the same in both places.

  • Fits X's limits

    Long channel posts are shortened with a link back to the full post in Telegram.

How it works

What happens, step by step

  1. You post in your Telegram channel as usual.

  2. Telegram tells ClickRuntime about the new post straight away.

  3. If the post has a photo, it is uploaded to X; long text is trimmed with a link back to the channel.

  4. The post is published on your X account.

Before it runs live

  • Connect Telegram
  • Connect X
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Mirror your Telegram channel posts to Xjust nowSucceeded
X · @northwindupdatesOur spring workshop dates are out: three Saturdays in April, 12 places each. Booking opens Monday.

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
  • 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 X 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.
telegram_channel_posts_mirrored_to_x.pyexample
from clickruntime import on_event, credentials, http

CHANNEL = "northwindupdates"

@on_event
def handle(event):
    post = (event.json or {}).get("channel_post")
    if not post:
        return {"mirrored": False}
    text = post.get("text") or post.get("caption") or ""
    link = f"https://t.me/{CHANNEL}/{post['message_id']}"
    if len(text) > 280:
        text = text[:250].rsplit(" ", 1)[0] + "… " + link
    x = {"Authorization": "Bearer " + credentials.connection("x", "main")}
    body = {"text": text}
    if post.get("photo"):
        bot = f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}"
        path = http.get(f"{bot}/getFile", params={"file_id": post["photo"][-1]["file_id"]}).json()["result"]["file_path"]
        image = http.get(f"https://api.telegram.org/file/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{path}").content
        media = http.post("https://api.x.com/2/media/upload", headers=x, files={"media": image},
                          data={"media_category": "tweet_image"}).json()["data"]["id"]
        body["media"] = {"media_ids": [media]}
    http.post("https://api.x.com/2/tweets", headers=x, json=body).raise_for_status()
    return {"mirrored": True}

FAQ

Common questions

What does the bot need in my channel?
Add your bot to the channel as an admin. It then receives each new post and can pass it on.
What happens to long posts?
Posts longer than X allows are trimmed and end with a link to the full post in your Telegram channel.
Does it mirror edits and deletions?
No. It mirrors new posts. Edits or deletions in Telegram need to be made on X by hand.
What permissions does it need?
bot admin in channel; tweet.write, media.write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
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 “Mirror your Telegram channel posts to X” from your assistant

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