The moment it happens
Forward your Telegram channel posts to LinkedIn and X
Posts in your Telegram channel are reposted to LinkedIn and X, and tags in the post decide which networks they go to.
- Runs
- The moment it happens
- Apps
- LinkedIn, X
- AI
- Not needed
- Access
- LinkedIn w_member_social; X tweet.write
Send this to your assistant
Create a ClickRuntime automation: when I post in my Telegram channel, repost it to LinkedIn and X. If the post has #li only post to LinkedIn, #x only to X, and trim it to fit X's limit.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
An independent analyst publishes quick market notes to a Telegram channel throughout the day. Their LinkedIn and X followers would value the same notes, but copying each one across is easy to skip.
Each channel post now goes to LinkedIn and X automatically, with simple tags to choose where. Long notes are trimmed for X so they still fit.
What you get out of it
One place to write
Post in Telegram, and your other audiences get it too.
You choose where it goes
Tags in the post decide LinkedIn, X or both.
Fits X's limit
Long posts are trimmed with an ellipsis for X.
No copying
Nothing to paste between apps.
How it works
What happens, step by step
You post in your Telegram channel, and your bot passes the post to ClickRuntime.
It reads the tags to see which networks the post should go to, and removes them.
For X, the text is trimmed to fit the character limit.
The post is published to LinkedIn, X or both.
Before it runs live
- Connect LinkedIn
- 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 LinkedIn and X steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http
AUTHOR = "urn:li:person:abc123"
@on_event
def handle(event):
text = (event.json or {}).get("channel_post", {}).get("text", "")
if not text:
return {"skipped": True}
to_li, to_x = "#x" not in text, "#li" not in text
text = text.replace("#li", "").replace("#x", "").strip()
if to_li:
http.post("https://api.linkedin.com/rest/posts",
headers={"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409"},
json={"author": AUTHOR, "commentary": text, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
"distribution": {"feedDistribution": "MAIN_FEED"}})
if to_x:
http.post("https://api.twitter.com/2/tweets", json={"text": text if len(text) <= 280 else text[:277] + "..."},
headers={"Authorization": f"Bearer {credentials.connection('x', 'work')}"})
return {"linkedin": to_li, "x": to_x}FAQ
Common questions
How do the tags work?
Does the bot need to be in my channel?
Are photos included?
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
Turn one topic into a LinkedIn post and an X post
Send a topic and get a professional LinkedIn post and a short X post, both published, with the links emailed to you.
See how it worksAnnounce new releases on LinkedIn and X when your changelog changes
When your README or CHANGELOG changes on GitHub, a release announcement is written from the changes and posted on LinkedIn and X.
See how it worksPost your content calendar to LinkedIn and X on time
Posts you schedule in a content calendar sheet go out on LinkedIn and X at the set time, and the post links are written back.
See how it worksKeep exploring
Set up “Forward your Telegram channel posts to LinkedIn and X” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.