Telegram
Send messages and interact with Telegram via a bot token.
telegramv1.0.07 个 Tools
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| API Key | api_key | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "TELEGRAM_CALLBACK_QUERY_ANSWER", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("TELEGRAM_CALLBACK_QUERY_ANSWER", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute TELEGRAM_CALLBACK_QUERY_ANSWER --data '{ }'Tool 目录
可用 Tools
7 个可调用操作
Answer Telegram callback queryTELEGRAM_CALLBACK_QUERY_ANSWERAnswers a callback query from an inline keyboard interaction.需要连接
Answers a callback query from an inline keyboard interaction.
认证
需要 Connected AccountTags
callbackswrite
Get Telegram chatTELEGRAM_CHAT_GETGets up-to-date information about a Telegram chat visible to the bot.需要连接
Gets up-to-date information about a Telegram chat visible to the bot.
认证
需要 Connected AccountTags
chatsread
Get Telegram botTELEGRAM_GET_METests the Telegram bot token and returns basic bot information.需要连接
Tests the Telegram bot token and returns basic bot information.
认证
需要 Connected AccountTags
botread
Send Telegram messageTELEGRAM_MESSAGE_SENDSends a text message to a Telegram chat using the bot token.需要连接
Sends a text message to a Telegram chat using the bot token.
认证
需要 Connected AccountTags
messageswrite
Edit Telegram message textTELEGRAM_MESSAGE_TEXT_EDITEdits text, rich, or game messages previously sent by the bot.需要连接
Edits text, rich, or game messages previously sent by the bot.
认证
需要 Connected AccountTags
messageswrite
Send Telegram photoTELEGRAM_PHOTO_SENDSends a photo to a Telegram chat using a file ID or HTTP URL.需要连接
Sends a photo to a Telegram chat using a file ID or HTTP URL.
认证
需要 Connected AccountTags
messagesmediawrite
Get Telegram updatesTELEGRAM_UPDATES_GETGets incoming Telegram bot updates with long polling parameters.需要连接
Gets incoming Telegram bot updates with long polling parameters.
认证
需要 Connected AccountTags
updatesread