GitHunt
ZA

zahidoverflow/PostXLinkedin

Self-hosted Telegram bot that cross-posts to X (Twitter) and LinkedIn simultaneously — image & text posts, interactive setup wizard, OAuth 2.0 PKCE, auto token refresh, AI caption rewriting

PostXLinkedin

Telegram bot you can run on your VPS:

  • You message it a photo with a caption
  • It posts to your X and LinkedIn

The bot is written in Go (PostXLinkedInbot/). An optional n8n/ folder is included if you prefer to route posting through n8n.

Run (Direct Mode)

  1. Set up a Telegram bot token with BotFather
  2. Create API tokens for:
    • X: OAuth2 user token with scopes like tweet.write and media.write
    • LinkedIn: OAuth2 access token and your author URN (urn:li:person:... or org urn)
  3. Configure PostXLinkedInbot/.env and run it

Run (n8n Mode)

Set N8N_WEBHOOK_URL and implement/import an n8n workflow that accepts the webhook payload described in n8n/README.md.

Contributors

Created February 14, 2026
Updated February 19, 2026
zahidoverflow/PostXLinkedin | GitHunt