Telegram's Bot API lets a bot send messages, photos and videos to a chat or channel. You create a bot with @BotFather (which gives you a bot token), add the bot to your channel as an admin, and find the chat id. PostWire then calls sendMessage / sendVideo for you.
No OAuth, no audit. Set it up once and post programmatically right away.
PostWire's Smart Distribute turns a single prompt (plus optional media) into the best native post for every network — never the same text everywhere, which every algorithm penalizes. For Telegram it writes a clean, scannable channel message that keeps links inline (Telegram doesn't penalize outbound links), while it simultaneously reframes the same idea for TikTok, YouTube, X, LinkedIn and the rest. AI generation is included free on every plan (you pay for brands, not per post) and is one MCP tool (generate_posts) or one REST call (POST /api/generate).
Message @BotFather → /newbot to get a token. Add the bot to your channel as admin. The chat id for a public channel can be @yourchannel; for private chats use the numeric id. PostWire stores the token encrypted. You can also connect from the dashboard without writing code.
curl -X POST https://postwire.io/api/connect \
-H "Authorization: Bearer $POSTWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"telegram","credentials":{"bot_token":"123456:ABC-DEF...","chat_id":"-1001234567890"}}'
Once connected, publishing is a single request. Add more networks by putting more strings in platforms — same payload, one call.
curl -X POST https://postwire.io/api/post \
-H "Authorization: Bearer $POSTWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platforms":["telegram"],"text":"Hello from PostWire 👋"}'
Response: {"results":[{"ok":true,"platform":"telegram", ...}]}
PostWire ships a first-class MCP server — not docs-only. Add it to any MCP client (Claude, Cursor, your own agent):
{
"mcpServers": {
"postwire": {
"command": "npx",
"args": ["-y", "postwire-mcp"],
"env": { "POSTWIRE_API_KEY": "pw_live_xxx" }
}
}
}
Then the agent just calls the tool — no HTTP plumbing:
{
"name": "post_to_social",
"arguments": { "platforms": ["telegram"], "text": "Shipped today 🚀" }
}
| Direct integration | PostWire | |
|---|---|---|
| Setup | Implement Telegram's API + auth | Connect once |
| Credential storage | You secure it | Encrypted (AES-256-GCM) |
| AI agent support | Build your own tool | MCP tool out of the box |
| Other networks | One integration each | 9 networks, one API |
| Plan | Price | Brands |
|---|---|---|
| Free | $0 | 1 brand · 30 posts/mo |
| Starter | $9 | 3 brands · 300/mo |
| Pro | $29 | 10 brands · 2,000/mo |
| Agency | $99 | 50 brands |
| Scale | $299 | 200 brands |
Running 50 brands on Ayrshare costs roughly $779 — and its MCP is docs-only, so an agent can't actually post. See PostWire vs Ayrshare.
Connect Telegram — free →