Telegram MTProto icon

Telegram MTProto

Full-featured Telegram MTProto client (Pyrogram equivalent)

Message → Pin Message

AI-generated

Summary

Pin a specific message in a Telegram chat to highlight it for all chat members.

Inputs

  • chatId (required) — The ID, username (@username), or phone number of the chat where the message exists.
  • messageId (required) — ID of the message to pin in the chat.
  • additionalOptions — Optional parameters including 'Silent' to pin the message without sending a notification to chat members.

Output shape

a JSON object representing the Telegram API response from the pin message action

The response includes details about the pin operation; if an error occurs, it will be returned accordingly. There is no pagination involved.

Discussion