pinChatMessage
Pin a message in a Telegram chat to keep it accessible at the top. Requires administrator rights with can_pin_messages in supergroups or can_edit_messages in channels.
Instructions
Add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator with can_pin_messages rights in a supergroup or can_edit_messages rights in a channel. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername) | |
| message_id | Yes | Identifier of a message to pin | |
| disable_notification | No | Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats. | |
| business_connection_id | No | Unique identifier of the business connection on behalf of which the message will be pinned |