Skip to content

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

Notifications You must be signed in to change notification settings

zahidoverflow/PostXLinkedin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published