Telegram MCP server for posting to channels
Why not call the Telegram API directly?
Doing it yourself with the Telegram API
- Create a bot with @BotFather, add it to your channel as an admin and keep its token safe.
- Use different Bot API methods for text, photos, albums and video, and respect the 1,024-character caption limit.
- Build your own scheduler, because the Bot API sends messages immediately.
With SleekPost
- Connect a public Telegram channel in the dashboard once. No developer app, review or token handling on your side.
- Give your agent an API key. Revoke it anytime.
- One create_post call publishes, schedules or drafts, on Telegram and any other network.
- Telegram's limits are checked before anything goes live, and errors say exactly what to fix.
Set up in a few minutes
claude mcp add --transport http sleekpost https://sleekpost.com/mcp --header "Authorization: Bearer YOUR_SLEEKPOST_API_KEY"Example: post to Telegram
You ask your agent
“Post the release notes to our Telegram channel at 10am.”
The agent calls list_accounts to find the account id, then makes one create_post call.
{
"tool": "create_post",
"arguments": {
"text": "Release 3.2 is out 🚀\n\n• Faster sync\n• New export formats\n• 40+ bug fixes\n\nUpdate from the app store or download it from our website.",
"account_ids": [
"ACCOUNT_ID"
],
"scheduled_at": "2026-12-02T10:00:00Z"
}
}Telegram rules your agent doesn't have to memorize
| Text limit | 4,096 characters (message), 1,024 as a media caption |
|---|---|
| Media | Optional (text-only posts work) |
| Images per post | Up to 10 |
| Video | 1 per post |
| Connect with | A public Telegram channel |
If your agent sends a 1,100-character caption on a photo to Telegram, nothing is published and the API explains what to change:
{
"error": {
"code": "invalid_request",
"message": "The post can't be published as-is: Telegram allows 1024 characters when media is attached; this text has 1100. Shorten it, or give this account its own shorter text in text_overrides.",
"hint": "Fix the listed problems and send the request again. text_overrides lets you give individual accounts their own text.",
"details": {
"problems": [
{
"account_id": "ACCOUNT_ID",
"platform": "telegram",
"message": "Telegram allows 1024 characters when media is attached; this text has 1100. Shorten it, or give this account its own shorter text in text_overrides."
}
]
}
}
}MCP tools
list_accountsList connected social accounts and their ids.
create_postPublish now, schedule, or draft a post to one or more accounts, with optional images/videos.
upload_mediaImport an image or video from a public URL and get a media id.
list_postsList scheduled, published, failed or draft posts.
get_postGet a post's per-account status, errors and live URLs.
delete_postDelete a draft or cancel a scheduled post.
Machine-readable docs: /llms.txt · /llms-full.txt · OpenAPI · MCP endpoint https://sleekpost.com/mcp
Other networks, same MCP server
Frequently asked questions
Do I need my own Telegram developer app?
No. You connect a public Telegram channel in the SleekPost dashboard once, and your agent only needs a SleekPost API key. It never sees your Telegram login or tokens.
Which AI tools can use the MCP server?
Claude Code, Cursor, VS Code, Codex, Gemini CLI and Claude Desktop, and any other client that supports remote MCP servers over HTTP. Anything that can send HTTP requests can use the REST API instead.
Can my agent schedule Telegram messages for later?
Yes. Pass scheduled_at as an ISO 8601 time to schedule, publish_now: true to post immediately, or draft: true to save a draft for a person to review.
How does the agent attach images or video?
Pass public URLs in media_urls. SleekPost downloads, converts and hosts the files, then publishes them with the post.
What does API and MCP access cost?
API and MCP access are included in every plan. Plans start at $9/month ($5.40/month billed yearly) with unlimited posts and a 7-day free trial.
Give your agent Telegram.
API and MCP access are included in every plan. Plans start at $9/month ($5.40/month billed yearly) with unlimited posts and a 7-day free trial.