Skip to content

The moment it happens

Mirror your Telegram channel to Facebook and X

Whatever you post in your Telegram channel is reposted, with its photo, to your Facebook Page and X.

Runs
The moment it happens
Apps
Facebook Pages, X
AI
Not needed
Access
pages_manage_posts; tweet.write, media.write

Send this to your assistant

Create a ClickRuntime automation: when I post in my Telegram channel, repost the text and any photo to my Facebook Page and X.

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 news channel runs mainly on Telegram, where its editor posts updates through the day. Its Facebook and X accounts lag behind because copying each post across is tedious.

Every channel post now appears on Facebook and X within seconds, with its photo, so followers on all three see the same updates without any extra work.

What you get out of it

  • Post once, reach three audiences

    Telegram, Facebook and X followers all get the update.

  • Photos included

    Images are carried over, not just text.

  • Accounts stay in step

    Facebook and X no longer fall behind your channel.

  • Fits X's limits

    Long posts are shortened for X so they still go out.

How it works

What happens, step by step

  1. You post in your Telegram channel, and your bot passes the post to ClickRuntime.

  2. If the post has a photo, it's downloaded from Telegram.

  3. The text and photo are posted to your Facebook Page.

  4. The same post goes to X, shortened if needed, with the photo attached.

Before it runs live

  • Connect Facebook Pages
  • 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 to Facebook and Xjust nowSucceeded
X · @northwindlocalRoad closure on Mill Street until 6pm while the bridge is inspected. Use Station Road instead.

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 Facebook Pages 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_facebook_and_x.pyexample
from clickruntime import on_event, credentials, http

PAGE_ID = "1234567890"

@on_event
def handle(event):
    post = (event.json or {}).get("channel_post", {})
    text = post.get("text") or post.get("caption") or ""
    if not text or "#noshare" in text:
        return {"skipped": True}
    fb = {"access_token": credentials.connection("facebook", "work")}
    x = {"Authorization": f"Bearer {credentials.connection('x', 'work')}"}
    tweet = {"text": text if len(text) <= 280 else text[:277] + "..."}
    if post.get("photo"):
        token = credentials.secret("TELEGRAM_BOT_TOKEN")
        path = http.get(f"https://api.telegram.org/bot{token}/getFile", params={"file_id": post["photo"][-1]["file_id"]}).json()["result"]["file_path"]
        image = http.get(f"https://api.telegram.org/file/bot{token}/{path}").content
        http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/photos", data={**fb, "caption": text}, files={"source": image})
        media = http.post("https://api.x.com/2/media/upload", headers=x, files={"media": image}).json()
        tweet["media"] = {"media_ids": [media["data"]["id"]]}
    else:
        http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed", data={**fb, "message": text})
    http.post("https://api.twitter.com/2/tweets", json=tweet, headers=x)
    return {"mirrored": True}

FAQ

Common questions

Does the bot need to be in my channel?
Yes. Add your bot as an admin of the channel so it receives each new post.
What about videos?
Text and photos are mirrored. Videos are shared as a link back to the channel post.
Can I skip some posts?
Yes. Add a tag such as #noshare to a post and it stays on Telegram only.
What permissions does it need?
pages_manage_posts; 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 to Facebook and X” from your assistant

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