# Telegram MCP server for AI agents

Connect ChatGPT, Claude, OpenClaw, Cursor or Codex to Telegram channels via MCP. Schedule broadcasts, 10-file albums, silent messages and pinned posts.

Broadcast updates to your public and private Telegram channels directly from your AI assistant without running your own BotFather server. PostSyncer’s MCP server offers 118 tools in one list (your client decides which of them it shows) for channel messages, 10-file mixed albums, silent sends, content protection and pinning.

**MCP server:** https://postsyncer.com/mcp · **REST API:** https://postsyncer.com/api/v1 · **Docs:** https://postsyncer.com/docs/platforms/telegram

## Example Telegram agent prompt

Prompt: “Schedule our Friday release announcement to our Telegram channel at 4 PM silently, pin it after delivery, and attach the latte photo and pour video as an album.”

- `list-workspaces`: Halden Coffee (#4815)

- `list-accounts`: Telegram @haldencoffee (#16244)

- `get-brand`: Loaded Halden Coffee voice

- `list-media`: Found latte-art.jpg (#5118) & rosetta-pour.mp4 (#5120)

- `create-post`: Scheduled silent pinned Telegram album #81462

Scheduled your 2-file Telegram album for @haldencoffee on Friday at 4:00 PM with silent delivery and automatic pinning enabled.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create-post",
    "arguments": {
      "workspace_id": 4815,
      "schedule_type": "schedule",
      "schedule_for": {
        "date": "2026-12-04",
        "time": "16:00",
        "timezone": "America/Los_Angeles"
      },
      "content": [
        {
          "text": "Latte art Fridays are back at Halden Coffee — first pour starts at 5 PM.",
          "media": [5118, 5120]
        }
      ],
      "accounts": [
        {
          "id": 16244,
          "settings": {
            "disable_notification": true,
            "pin_message": true,
            "protect_content": false
          }
        }
      ]
    }
  }
}
```

## Quick start

1. **Connect your AI client.** Install the ChatGPT app or Claude plugin, or point Claude Code, OpenClaw, Cursor, Codex or Gemini CLI at https://postsyncer.com/mcp.

2. **Connect your Telegram channel via bot link.** Connect public or private channels inside PostSyncer (or ask your agent to run create-account-connect-link with provider: telegram) by picking the channel in Telegram.

3. **Broadcast digests, albums and pinned updates.** Prompt your agent to schedule silent community digests, protect subscriber-only drops, pin release notes or review public channel views.

## MCP tools for Telegram

Verified PostSyncer MCP tools for Telegram channels — handling bot onboarding links, media albums, silent/pinned broadcasts and public channel view stats.

- `list-accounts` (`accounts:read`): Locate connected public and private Telegram channel IDs inside a workspace.

- `create-account-connect-link` (`accounts:create`): Generate a 7-day connect link; each Open Telegram tap in it lasts 15 minutes and adds the bot to one channel.

- `get-brand` (`brand:read`): Read workspace tone before drafting Telegram channel announcements.

- `create-post` (`posts:create / schedule / publish`): Draft or schedule Telegram messages, single media and 2–10 file albums with silent, pin and spoiler flags.

- `update-post` (`posts:update`, destructive): Edit scheduled Telegram message text, album media or settings before broadcast.

- `delete-post` (`posts:delete`, destructive): Cancel scheduled broadcasts or ask Telegram to delete a live channel message.

- `get-analytics-post` (`analytics:read`): Read public channel message views (impressions) and reactions (likes).

- `get-analytics-account` (`analytics:read`): Track subscriber counts for both public and private Telegram channels.

## Agent workflows on Telegram

High-signal Telegram channel workflows builders, newsletters and community managers automate with PostSyncer MCP.

### Schedule a silent overnight changelog broadcast

Prompt: “Summarize our latest release notes in under 1,000 plain-text characters and schedule it to our Telegram channel for 2 AM silently with pin_message enabled.”

Tools: `get-brand`, `list-accounts`, `create-post`. Broadcasts cleanly with disable_notification: true and pins the release summary without waking subscribers.

### Protect subscriber-only photo albums from forwarding

Prompt: “Bundle the 4 preview photos in our VIP Drop folder into a Telegram album draft with protect_content and has_spoiler both turned on.”

Tools: `list-folders`, `list-media`, `create-post`. Creates a spoiler-covered, forward-protected Telegram album ready for approval on your calendar.

### Cross-post a launch with a Telegram-safe short caption

Prompt: “Schedule our spring launch video to TikTok, YouTube and Telegram together — use our compressed 12 MB video library ID for Telegram and keep its caption under 900 characters.”

Tools: `list-accounts`, `list-media`, `create-post`. Passes Telegram’s compressed asset via settings.media (respecting the 20 MB ceiling) while other networks receive the master clip.

### Review public channel views and reaction leaders

Prompt: “Pull analytics for our last 5 public Telegram channel posts and rank them by views and reactions.”

Tools: `list-posts`, `get-analytics-post`. Compares message views (impressions) and reactions (likes) across recent broadcasts.

## Telegram channel automation without hosting your own bot

Most DIY Telegram MCP servers require generating a BotFather token, storing secrets locally, looking up numeric chat_ids manually, and writing custom logic for sendMediaGroup vs sendPhoto vs sendMessage. PostSyncer handles all of that through one hosted bot and Streamable HTTP MCP server at https://postsyncer.com/mcp.

When you need to onboard a new channel, your agent can even call create-account-connect-link with provider: telegram to hand the channel owner a connect link that lasts 7 days; each Open Telegram tap in it stays active for 15 minutes and adds PostSyncer’s bot as an admin automatically. Only channels connect (not groups).

## Smart guardrails for Telegram’s 20 MB video cap and caption limits

Telegram enforces two distinct text limits — 4,096 characters for text-only broadcasts and 1,024 characters for photo, video or album captions — plus a strict 20 MB ceiling on uploaded videos (5 MB on photos). When an agent schedules or publishes a post exceeding those thresholds, PostSyncer returns a 422 naming the exact limit so the agent shortens the caption or swaps in a smaller file immediately.

Because PostSyncer transmits clean plain text (never unescaped Markdown or HTML), AI-generated posts containing underscores, brackets or code snippets never fail with Telegram formatting errors.

## Pinning, album deletion and public vs private analytics

Setting pin_message: true requires the bot’s edit-messages admin right; if Telegram declines the pin, the broadcast still goes out and PostSyncer returns a setting_not_applied diagnostic. Note that delete-post (marked destructive) removes single messages completely, while on multi-file albums PostSyncer deletes only the first item, so remove the rest in Telegram.

PostSyncer does not read Telegram discussion comments. For reporting, public channels expose per-post views (impressions) and reactions (likes), while private channels report telegram_private for per-post metrics and still track subscriber counts accurately via get-analytics-account.

Related pages: [Telegram REST API](https://postsyncer.com/telegram-api), [Telegram scheduler](https://postsyncer.com/telegram-scheduler), [MCP server overview](https://postsyncer.com/mcp-social-media).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### Does Telegram MCP work with Telegram channels or groups?

It works with public and private Telegram channels where PostSyncer’s bot is added as an admin. Telegram groups are not supported.

### Can an AI agent send silent, protected or pinned Telegram messages?

Yes. Pass disable_notification, protect_content, pin_message, has_spoiler or show_caption_above_media in accounts[].settings on create-post.

### Can my agent publish multi-photo and video albums to Telegram?

Yes. Pass 2 to 10 photos and videos (photos ≤ 5 MB, videos ≤ 20 MB) in content[0].media and PostSyncer sends them as a Telegram media group album.

### Does Telegram MCP support Markdown or HTML formatting?

No. Messages are sent as plain text (up to 4,096 characters for text messages and 1,024 for media captions) so posts never break on formatting syntax.

### Can my agent read Telegram comments or private channel view stats?

PostSyncer does not read Telegram comments. Public channels report views and reactions per post plus subscriber counts; private channels report subscriber counts via get-analytics-account.

### Is Telegram MCP included on the Free plan?

Yes. Every PostSyncer plan includes the MCP server, Free included, within your plan’s accounts and monthly posts.

---

Page: https://postsyncer.com/telegram-mcp · Updated 2026-11-27
