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.
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
You post in your Telegram channel, and your bot passes the post to ClickRuntime.
If the post has a photo, it's downloaded from Telegram.
The text and photo are posted to your Facebook Page.
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
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
- 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
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?
What about videos?
Can I skip some posts?
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
Post your content calendar to Facebook and X on schedule
Posts you plan in a sheet go out on your Facebook Page and X at their scheduled time, and the sheet shows what's been posted.
See how it worksPost AI-written updates to Facebook and X from your topic list
Each day the next topic on your list becomes a Facebook post and an X post, written to fit each one and published.
See how it worksPost about a trending topic in your niche each day
Each day the most talked-about topic in your niche becomes a post on your Facebook Page and X.
See how it worksKeep exploring
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.