Telegram
Use the Telegram Bot API to inspect bots, receive updates, send messages and media, manage chats, handle payments, and work with stickers.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| Bot Token | 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_ADD_STICKER_TO_SET", 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_ADD_STICKER_TO_SET", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute TELEGRAM_ADD_STICKER_TO_SET --data '{ }'Tool 目录
可用 Tools
50 个可调用操作
Add Sticker to SetTELEGRAM_ADD_STICKER_TO_SETAdd a new sticker to a set created by the bot.需要连接
Add a new sticker to a set created by the bot.
认证
需要 Connected AccountTags
Answer Callback QueryTELEGRAM_ANSWER_CALLBACK_QUERYSend answers to callback queries sent from inline keyboards.需要连接
Send answers to callback queries sent from inline keyboards.
认证
需要 Connected AccountTags
Answer Pre-Checkout QueryTELEGRAM_ANSWER_PRE_CHECKOUT_QUERYRespond to pre-checkout queries.需要连接
Respond to pre-checkout queries.
认证
需要 Connected AccountTags
Answer Shipping QueryTELEGRAM_ANSWER_SHIPPING_QUERYReply to shipping queries.需要连接
Reply to shipping queries.
认证
需要 Connected AccountTags
Approve Chat Join RequestTELEGRAM_APPROVE_CHAT_JOIN_REQUESTApprove a chat join request.需要连接
Approve a chat join request.
认证
需要 Connected AccountTags
Ban Chat MemberTELEGRAM_BAN_CHAT_MEMBERBan a user in a group, a supergroup or a channel.需要连接
Ban a user in a group, a supergroup or a channel.
认证
需要 Connected AccountTags
Copy MessageTELEGRAM_COPY_MESSAGECopy messages of any kind without the forward marker.需要连接
Copy messages of any kind without the forward marker.
认证
需要 Connected AccountTags
Create Chat Invite LinkTELEGRAM_CREATE_CHAT_INVITE_LINKCreate an additional invite link for a chat.需要连接
Create an additional invite link for a chat.
认证
需要 Connected AccountTags
Create New Sticker SetTELEGRAM_CREATE_NEW_STICKER_SETCreate a new sticker set owned by a user.需要连接
Create a new sticker set owned by a user.
认证
需要 Connected AccountTags
Decline Chat Join RequestTELEGRAM_DECLINE_CHAT_JOIN_REQUESTDecline a chat join request.需要连接
Decline a chat join request.
认证
需要 Connected AccountTags
Delete Chat PhotoTELEGRAM_DELETE_CHAT_PHOTODelete a chat photo.需要连接
Delete a chat photo.
认证
需要 Connected AccountTags
Delete MessageTELEGRAM_DELETE_MESSAGEDelete a message, including service messages.需要连接
Delete a message, including service messages.
认证
需要 Connected AccountTags
Delete WebhookTELEGRAM_DELETE_WEBHOOKRemove webhook integration.需要连接
Remove webhook integration.
认证
需要 Connected AccountTags
Edit Message CaptionTELEGRAM_EDIT_MESSAGE_CAPTIONEdit captions of messages.需要连接
Edit captions of messages.
认证
需要 Connected AccountTags
Edit Message TextTELEGRAM_EDIT_MESSAGE_TEXTEdit text and game messages.需要连接
Edit text and game messages.
认证
需要 Connected AccountTags
Export Chat Invite LinkTELEGRAM_EXPORT_CHAT_INVITE_LINKGenerate a new primary invite link for a chat.需要连接
Generate a new primary invite link for a chat.
认证
需要 Connected AccountTags
Forward MessageTELEGRAM_FORWARD_MESSAGEForward messages of any kind.需要连接
Forward messages of any kind.
认证
需要 Connected AccountTags
Get ChatTELEGRAM_GET_CHATGet up-to-date information about the chat.需要连接
Get up-to-date information about the chat.
认证
需要 Connected AccountTags
Get Chat AdministratorsTELEGRAM_GET_CHAT_ADMINISTRATORSGet a list of administrators in a chat.需要连接
Get a list of administrators in a chat.
认证
需要 Connected AccountTags
Get Chat MemberTELEGRAM_GET_CHAT_MEMBERGet information about a member of a chat.需要连接
Get information about a member of a chat.
认证
需要 Connected AccountTags
Get Chat Member CountTELEGRAM_GET_CHAT_MEMBER_COUNTGet the number of members in a chat.需要连接
Get the number of members in a chat.
认证
需要 Connected AccountTags
Get FileTELEGRAM_GET_FILEGet basic info about a file and prepare it for downloading.需要连接
Get basic info about a file and prepare it for downloading.
认证
需要 Connected AccountTags
Get Bot InfoTELEGRAM_GET_MEA simple method for testing your bot authentication token. Returns basic information about the bot in the form of a User object.需要连接
A simple method for testing your bot authentication token. Returns basic information about the bot in the form of a User object.
认证
需要 Connected AccountTags
Get My CommandsTELEGRAM_GET_MY_COMMANDSGet the current list of the bot commands.需要连接
Get the current list of the bot commands.
认证
需要 Connected AccountTags
Get UpdatesTELEGRAM_GET_UPDATESReceive incoming updates using long polling. Returns an array of Update objects. Notes: this method will not work if an outgoing webhook is set up.需要连接
Receive incoming updates using long polling. Returns an array of Update objects. Notes: this method will not work if an outgoing webhook is set up.
认证
需要 Connected AccountTags
Get User Profile PhotosTELEGRAM_GET_USER_PROFILE_PHOTOSGet a list of profile pictures for a user.需要连接
Get a list of profile pictures for a user.
认证
需要 Connected AccountTags
Get Webhook InfoTELEGRAM_GET_WEBHOOK_INFOGet current webhook status.需要连接
Get current webhook status.
认证
需要 Connected AccountTags
Leave ChatTELEGRAM_LEAVE_CHATUse this method for your bot to leave a group, supergroup or channel.需要连接
Use this method for your bot to leave a group, supergroup or channel.
认证
需要 Connected AccountTags
Pin Chat MessageTELEGRAM_PIN_CHAT_MESSAGEAdd a message to the list of pinned messages in a chat.需要连接
Add a message to the list of pinned messages in a chat.
认证
需要 Connected AccountTags
Promote Chat MemberTELEGRAM_PROMOTE_CHAT_MEMBERPromote or demote a user in a supergroup or a channel.需要连接
Promote or demote a user in a supergroup or a channel.
认证
需要 Connected AccountTags
Restrict Chat MemberTELEGRAM_RESTRICT_CHAT_MEMBERRestrict a user in a supergroup.需要连接
Restrict a user in a supergroup.
认证
需要 Connected AccountTags
Revoke Chat Invite LinkTELEGRAM_REVOKE_CHAT_INVITE_LINKRevoke an invite link created by the bot.需要连接
Revoke an invite link created by the bot.
认证
需要 Connected AccountTags
Send AudioTELEGRAM_SEND_AUDIOSend audio files as a playable music track.需要连接
Send audio files as a playable music track.
认证
需要 Connected AccountTags
Send ContactTELEGRAM_SEND_CONTACTSend phone contacts.需要连接
Send phone contacts.
认证
需要 Connected AccountTags
Send DiceTELEGRAM_SEND_DICESend an animated emoji that will display a random value.需要连接
Send an animated emoji that will display a random value.
认证
需要 Connected AccountTags
Send DocumentTELEGRAM_SEND_DOCUMENTSend general files.需要连接
Send general files.
认证
需要 Connected AccountTags
Send InvoiceTELEGRAM_SEND_INVOICESend invoices.需要连接
Send invoices.
认证
需要 Connected AccountTags
Send LocationTELEGRAM_SEND_LOCATIONSend a point on the map.需要连接
Send a point on the map.
认证
需要 Connected AccountTags
Send MessageTELEGRAM_SEND_MESSAGESend text messages.需要连接
Send text messages.
认证
需要 Connected AccountTags
Send PhotoTELEGRAM_SEND_PHOTOSend photos.需要连接
Send photos.
认证
需要 Connected AccountTags
Send PollTELEGRAM_SEND_POLLSend a native poll.需要连接
Send a native poll.
认证
需要 Connected AccountTags
Send VideoTELEGRAM_SEND_VIDEOSend video files.需要连接
Send video files.
认证
需要 Connected AccountTags
Send VoiceTELEGRAM_SEND_VOICESend audio files as a voice message.需要连接
Send audio files as a voice message.
认证
需要 Connected AccountTags
Set Chat Administrator Custom TitleTELEGRAM_SET_CHAT_ADMINISTRATOR_CUSTOM_TITLESet a custom title for an administrator in a supergroup promoted by the bot.需要连接
Set a custom title for an administrator in a supergroup promoted by the bot.
认证
需要 Connected AccountTags
Set Chat DescriptionTELEGRAM_SET_CHAT_DESCRIPTIONChange the description of a group, a supergroup or a channel.需要连接
Change the description of a group, a supergroup or a channel.
认证
需要 Connected AccountTags
Set Chat TitleTELEGRAM_SET_CHAT_TITLEChange the title of a chat.需要连接
Change the title of a chat.
认证
需要 Connected AccountTags
Set My CommandsTELEGRAM_SET_MY_COMMANDSChange the list of the bot commands.需要连接
Change the list of the bot commands.
认证
需要 Connected AccountTags
Set WebhookTELEGRAM_SET_WEBHOOKSpecify a URL and receive incoming updates via an outgoing webhook.需要连接
Specify a URL and receive incoming updates via an outgoing webhook.
认证
需要 Connected AccountTags
Unban Chat MemberTELEGRAM_UNBAN_CHAT_MEMBERUnban a previously banned user in a supergroup or channel.需要连接
Unban a previously banned user in a supergroup or channel.
认证
需要 Connected AccountTags
Unpin Chat MessageTELEGRAM_UNPIN_CHAT_MESSAGERemove a message from the list of pinned messages in a chat.需要连接
Remove a message from the list of pinned messages in a chat.
认证
需要 Connected AccountTags