Telegram 机器人 MCP 与 API 接入

团队应用鉴权:api_key

团队 Telegram 机器人:发送编辑消息、投票、群聊信息与成员、群管与机器人指令配置。

本地 Telegram 机器人 MCP 配置

每台设备存放明文密钥

  • 原始 Telegram 机器人 Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 Telegram 机器人

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

set up https://duang.ai/SKILL.md

全部操作(58)

操作价格
POST api.telegram.org/answerCallbackQuery

Use this method to send answers to callback queries sent from [inline keyboards](/bots#inline-keyboards-and-on-the-fly-updating). The answe…

自备 Key
POST api.telegram.org/answerInlineQuery

Use this method to send answers to an inline query. On success, *True* is returned.

自备 Key
POST api.telegram.org/answerPreCheckoutQuery

Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an [Update](https:/…

自备 Key
POST api.telegram.org/answerShippingQuery

If you sent an invoice requesting a shipping address and the parameter *is\_flexible* was specified, the Bot API will send an [Update](http…

自备 Key
POST api.telegram.org/close

Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling…

自备 Key
POST api.telegram.org/deleteWebhook

Use this method to remove webhook integration if you decide to switch back to [getUpdates](https://core.telegram.org/bots/api/#getupdates).…

自备 Key
POST api.telegram.org/getFile

Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in siz…

自备 Key
POST api.telegram.org/getGameHighScores

Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. On…

自备 Key
POST api.telegram.org/getMe

A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a [User](http…

自备 Key
POST api.telegram.org/getMyCommands

Use this method to get the current list of the bot's commands. Requires no parameters. Returns Array of [BotCommand](https://core.telegram.…

自备 Key
POST api.telegram.org/getUpdates

Use this method to receive incoming updates using long polling ([wiki](https://en.wikipedia.org/wiki/Push_technology#Long_polling)). An Arr…

自备 Key
POST api.telegram.org/getUserProfilePhotos

Use this method to get a list of profile pictures for a user. Returns a [UserProfilePhotos](https://core.telegram.org/bots/api/#userprofile…

自备 Key
POST api.telegram.org/getWebhookInfo

Use this method to get current webhook status. Requires no parameters. On success, returns a [WebhookInfo](https://core.telegram.org/bots/a…

自备 Key
POST api.telegram.org/logOut

Use this method to log out from the cloud Bot API server before launching the bot locally. You **must** log out the bot before running it l…

自备 Key
POST api.telegram.org/setGameScore

Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited [Messa…

自备 Key
POST api.telegram.org/setMyCommands

Use this method to change the list of the bot's commands. Returns *True* on success.

自备 Key
POST api.telegram.org/setPassportDataErrors

Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Pass…

自备 Key
POST api.telegram.org/deleteChatPhoto

Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to…

自备 Key
POST api.telegram.org/exportChatInviteLink

Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the…

自备 Key
POST api.telegram.org/getChat

Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a…

自备 Key
POST api.telegram.org/getChatAdministrators

Use this method to get a list of administrators in a chat. On success, returns an Array of [ChatMember](https://core.telegram.org/bots/api/…

自备 Key
POST api.telegram.org/getChatMember

Use this method to get information about a member of a chat. Returns a [ChatMember](https://core.telegram.org/bots/api/#chatmember) object…

自备 Key
POST api.telegram.org/getChatMembersCount

Use this method to get the number of members in a chat. Returns *Int* on success.

自备 Key
POST api.telegram.org/leaveChat

Use this method for your bot to leave a group, supergroup or channel. Returns *True* on success.

自备 Key
POST api.telegram.org/pinChatMessage

Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administra…

自备 Key
POST api.telegram.org/setChatAdministratorCustomTitle

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns *True* on success.

自备 Key
POST api.telegram.org/setChatDescription

Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to w…

自备 Key
POST api.telegram.org/setChatPermissions

Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to…

自备 Key
POST api.telegram.org/setChatTitle

Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for…

自备 Key
POST api.telegram.org/unpinAllChatMessages

Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the…

自备 Key
POST api.telegram.org/unpinChatMessage

Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an admin…

自备 Key
POST api.telegram.org/copyMessage

Use this method to copy messages of any kind. The method is analogous to the method [forwardMessages](https://core.telegram.org/bots/api/#f…

自备 Key
POST api.telegram.org/deleteMessage

Use this method to delete a message, including service messages, with the following limitations:

自备 Key
POST api.telegram.org/editMessageCaption

Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited [Message](https://core…

自备 Key
POST api.telegram.org/editMessageLiveLocation

Use this method to edit live location messages. A location can be edited until its *live\_period* expires or editing is explicitly disabled…

自备 Key
POST api.telegram.org/editMessageReplyMarkup

Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited [Message]…

自备 Key
POST api.telegram.org/editMessageText

Use this method to edit text and [game](https://core.telegram.org/bots/api/#games) messages. On success, if the edited message is not an in…

自备 Key
POST api.telegram.org/forwardMessage

Use this method to forward messages of any kind. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/sendChatAction

Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when…

自备 Key
POST api.telegram.org/sendContact

Use this method to send phone contacts. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/sendDice

Use this method to send an animated emoji that will display a random value. On success, the sent [Message](https://core.telegram.org/bots/a…

自备 Key
POST api.telegram.org/sendGame

Use this method to send a game. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/sendInvoice

Use this method to send invoices. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/sendLocation

Use this method to send point on the map. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/sendMessage

Use this method to send text messages. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/sendPoll

Use this method to send a native poll. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/sendVenue

Use this method to send information about a venue. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned.

自备 Key
POST api.telegram.org/stopMessageLiveLocation

Use this method to stop updating a live location message before *live\_period* expires. On success, if the message was sent by the bot, the…

自备 Key
POST api.telegram.org/stopPoll

Use this method to stop a poll which was sent by the bot. On success, the stopped [Poll](https://core.telegram.org/bots/api/#poll) with the…

自备 Key
POST api.telegram.org/kickChatMember

Use this method to kick a user from a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able…

自备 Key
POST api.telegram.org/promoteChatMember

Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and…

自备 Key
POST api.telegram.org/restrictChatMember

Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the a…

自备 Key
POST api.telegram.org/unbanChatMember

Use this method to unban a previously kicked user in a supergroup or channel. The user will **not** return to the group or channel automati…

自备 Key
POST api.telegram.org/deleteChatStickerSet

Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must hav…

自备 Key
POST api.telegram.org/deleteStickerFromSet

Use this method to delete a sticker from a set created by the bot. Returns *True* on success.

自备 Key
POST api.telegram.org/getStickerSet

Use this method to get a sticker set. On success, a [StickerSet](https://core.telegram.org/bots/api/#stickerset) object is returned.

自备 Key
POST api.telegram.org/setChatStickerSet

Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must hav…

自备 Key
POST api.telegram.org/setStickerPositionInSet

Use this method to move a sticker in a set created by the bot to a specific position. Returns *True* on success.

自备 Key

常见问题

如何在 Claude Code 或 Cursor 中接入 Telegram 机器人?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 Telegram 机器人 全部 58 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 Telegram 机器人 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 Telegram 机器人 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用