Skip to content

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.

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

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

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

  2. It reads the tags to see which networks the post should go to, and removes them.

  3. For X, the text is trimmed to fit the character limit.

  4. 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

RunsThe moment it happens
Forward your Telegram channel posts to LinkedIn and Xjust nowSucceeded
X · @northwindmarketsCopper up 3% on supply news. Watch for knock-on moves in cable makers this week.

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 LinkedIn 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.
forward_channel_posts_to_linkedin_and_x.pyexample
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?
Add #li for LinkedIn only or #x for X only. With no tag, the post goes to both. Tags are removed before posting.
Does the bot need to be in my channel?
Yes. Add it as an admin so it receives each new post.
Are photos included?
Text is forwarded. Ask for the photo version if you want images carried across too.
What permissions does it need?
LinkedIn w_member_social; X tweet.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 “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.