Telegram

Telegram is a cloud-based messaging app with a focus on security and speed. Build bots to send messages, manage chats, and interact with users.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Answer Callback Query

    Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.

  • Export Chat Invite Link

    Generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.

  • Delete Message

    Delete a message, including eligible service messages. Telegram imposes time and message-type restrictions; deletion rights depend on the chat and message, and administrators with appropriate rights can delete other users' messages.

  • Edit Message

    Edit the text of a message identified by chat and message ID or inline message ID. Telegram's editing permissions and message restrictions apply.

  • Forward Message

    Forward a message from one chat to another. Service messages and messages with protected content cannot be forwarded.

  • Get Chat Info

    Get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). The bot must be a member of or have access to the target chat; calls fail if the bot was never added, was removed, or is blocked.

  • Get Chat Administrators

    Get a list of chat administrators, excluding other bots. On success, returns ChatMember objects, including the bot itself if it is an administrator.

  • Get Chat History

    Poll pending bot updates and filter the returned batch by chat ID or username; this is not complete chat history, and an empty filtered batch does not establish that the chat has no accessible messages. Polling requires no active webhook, and advancing the offset confirms earlier updates across chats.

  • Get Chat Member

    Get a chat member's status/role (including the bot itself) to preflight permissions and troubleshoot 403/empty-history issues. Use before sending messages to verify bot membership and permissions.

  • Get Chat Members Count

    Get the number of members in a chat. The bot must be an administrator in the chat for this to work. Insufficient admin permissions surface as authorization errors, not as a zero or empty count.

  • Get Bot Info

    Get basic information about the bot using the Bot API getMe method, including its ID, name, username and available capability flags.

  • Get Updates

    Receive incoming bot updates using long polling; an outgoing webhook must be removed first, and offsets confirm earlier updates. Returned updates expose message, edited message, channel post, edited channel post and callback query fields, with limited message details.

  • Send Document

    Send a general file to a Telegram chat using the Bot API. Telegram currently supports sending documents by URL only for PDF and ZIP files.

  • Send Location

    Send point on the map location to a Telegram chat using the Bot API.

  • Send Message

    Send a text message to a Telegram chat using the Bot API. Sending is subject to Telegram's chat permissions and flood controls.

  • Send Photo

    Send a photo to a Telegram chat using the Bot API. Each call sends one photo rather than an album.

  • Send Poll

    Send a native poll to a Telegram chat using the Bot API, with a question and answer options. On success, Telegram returns the sent message containing the poll.

  • Set Bot Commands

    Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands.