Telegram MCP server for AI agents

Live

API KEY

MESSAGING

Communication

Telegram gives your agent a bot in your Telegram account: send messages, photos, documents, and polls, edit and pin messages, read chat details, and manage webhooks and commands.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Telegram
agent · Acme Q3
Run
Send the standup reminder to the team chat.
S
telegram_message_send
158ms
Messaging agent
Sent the reminder as a message from the bot to the team chat.
Sources: Telegram chat
telegram
1 message
18:29
Message Claude...

Tools your messaging agent reaches for on Telegram, scoped per user.

CALL ANY TOOL
23 tools for messaging in Telegram: send messages, photos, documents, and polls, edit, forward, pin, and delete messages, read chats and members, and manage webhooks and bot commands.
telegram_bot_get
Get bot
Get the connected bot's own Telegram account: checks that the bot token works. Returns the bot's user id, first_name, username, and flags such as can_join_groups and can_read_all_group_messages. Use this first to confirm the connection or to learn the bot's @username.
Parameters
Name
Type
Required
Description
—
No parameters required
telegram_callback_query_answer
Callback query answer
telegram_chat_action_send
Send chat action
telegram_chat_administrators_list
List chat administrators
telegram_chat_get
Get chat
telegram_chat_member_count_get
Get chat member count
telegram_chat_member_get
Get chat member
telegram_commands_get
Get commands
telegram_commands_set
Set commands
telegram_document_send
Send document
telegram_message_copy
Copy message
telegram_message_delete
Delete message
telegram_message_edit_text
Message edit text
telegram_message_forward
Message forward
telegram_message_pin
Message pin
telegram_message_send
Send message
telegram_message_unpin
Message unpin
telegram_photo_send
Send photo
telegram_poll_send
Send poll
telegram_updates_get
Get updates
telegram_webhook_delete
Delete webhook
telegram_webhook_info_get
Get webhook info
telegram_webhook_set
Set webhook
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Telegram tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["telegram"], toolNames: [
    "telegram_message_send",
    "telegram_poll_send",
    "telegram_message_pin"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Post the standup reminder to the team chat, add a poll for the meeting day, and pin the reminder" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["telegram"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Post the standup reminder to the team chat, add a poll for the meeting day, and pin the reminder" }],
  tools,
});

// Execute the tool call with the user's vaulted Telegram API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["telegram"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Post the standup reminder to the team chat, add a poll for the meeting day, and pin the reminder" }],
  tools,
});

// Tool call runs with the user's vaulted Telegram API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["telegram"] }, pageSize: 100,
});

const agent = new Agent({
  name: "messaging_agent",
  model: "gemini-2.5-pro",
  instruction: "Telegram tools scoped to this user",
  tools,
});

await agent.run("Post the standup reminder to the team chat, add a poll for the meeting day, and pin the reminder");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Telegram tool. Click to copy, paste into your agent, done.
Send messages
Copy the prompt
Copied
Send a text message to this chat.
Copy the prompt
Copied
Send this photo to the channel with a caption.
Copy the prompt
Copied
Post a poll asking which day works for the team.
Manage messages
Copy the prompt
Copied
Pin the announcement message in the group.
Copy the prompt
Copied
Forward this message to the ops chat.
Copy the prompt
Copied
Edit the message the bot sent earlier.
Read chats
Copy the prompt
Copied
How many members are in this chat?
Copy the prompt
Copied
List the administrators of this group.
Copy the prompt
Copied
Fetch the latest incoming updates for the bot.
SEE HOW AUTH WORKS
Each user connects their own Telegram API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Telegram
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Telegram
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Telegram
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Telegram
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other communication connectors.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Test other agents
See the same per-user auth pattern across other communication connectors.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Telegram API key looks fine in a demo. In production every message looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Telegram today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Telegram as the user or through a shared API key?
As the user. Each user connects their own Telegram API key once, and Scalekit sends it with every call. Audit logs attribute every message to that user, not a shared service account.
Where is the Telegram API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Telegram?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example telegram_chat_get and telegram_updates_get without telegram_message_delete, which deletes a message from a chat, and telegram_webhook_delete, which removes the bot's webhook. 2 of the 23 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Telegram access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which Telegram bot does the agent act as?
The bot the user's API key belongs to. telegram_bot_get returns the connected bot's own account and checks that the key works.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""telegram"": {
""url"": ""https://mcp.scalekit.com/telegram"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.telegram]
url = ""https://mcp.scalekit.com/telegram""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""telegram"": {
""url"": ""https://mcp.scalekit.com/telegram"",
""type"": ""http""
}
}
}