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.
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
You post in your Telegram channel as usual.
Telegram tells ClickRuntime about the new post straight away.
If the post has a photo, it is uploaded to X; long text is trimmed with a link back to the channel.
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
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 Telegram and X steps into one automation
Under the hood
The code that runs this automation
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?
What happens to long posts?
Does it mirror edits and deletions?
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
Announce new products on X and Telegram
When you add a product to your store, it is announced on X and in your Telegram channel with its price and link.
See how it worksApprove AI-written X posts in Telegram
Each day AI drafts posts for your X account and sends them to Telegram, where one tap publishes the ones you like.
See how it worksShare the best posts from your sources on X
Every few hours the most interesting article from sources you follow is shared on X with your own comment, and you get a note in Telegram.
See how it worksKeep exploring
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.