Automating Cross-Posting from Telegram to LinkedIn, Threads, and X
Publora turned out to have an almost nonexistent limit, so I built a custom solution for my own needs. I had to do some debugging, but the result turned out great.
Here’s how it works: I write a post in my Telegram channel, and the Telegram bot automatically:
- Receives the post through a webhook (CF).
- Adapts the post using GPT-4.1-nano, creating a version for each platform:
- LinkedIn — translated into English
- Threads — kept in Russian and split into separate posts
- Twitter/X — translated into English and split into separate posts as well
- To prevent low-quality output from being published, sends me a preview in a private chat with Publish and Skip buttons for each platform.
That wasn’t enough, so I added the following to the bot:
- Revisions: I can write “remove the last paragraph from LinkedIn” in the bot, and it rebuilds the post and sends a new preview.
- Image support
- Processing old posts: I simply forward them to the bot
- Reminders about Threads and LinkedIn tokens (their tokens are apparently short-lived—60 or 90 days)
- Buttons for managing and approving posts
- Feedback for every action, including a link to the post on each social network
I wonder how much a SaaS like this would have cost a couple of years ago.
Stack: Cloudflare Workers + KV, GPT-4.1-nano, Telegram Bot API, Meta Threads API, LinkedIn API, and X API v2. Zero servers and zero infrastructure costs. I only pay for X tokens and the chat, and that costs next to nothing.
One more manual routine eliminated.