Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Chat → Unpin Chat Message

AI-generated

Summary

Removes a pinned message from a specific chat.

Inputs

  • chat_id (required) — Unique identifier for the target chat or username (@channelusername).
  • message_id (required) — Unique identifier of the target message to unpin.

Output shape

The API response object for the unpin operation.

Returns the Telegram API response, which typically confirms the successful unpin. Does not return the unpinned message content.

Examples

Example 1: Unpin a specific pinned message in a group chat.

Select Resource: Chat, Operation: Unpin Chat Message. Provide chat_id (e.g., -1001234567890) and message_id (e.g., 42).

Example 2: Unpin a pinned message in a channel.

Select Resource: Chat, Operation: Unpin Chat Message. Use channel username (e.g., @mychannel) as chat_id and the message ID.

Links

Discussion