api.pinChatMessage()
Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel
Parameters
PinChatMessageParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Identifier of the chat |
messageId | number | Identifier of the new pinned message |
disableNotification | boolean | True, if there must be no notification about the pinned message. Notifications are always disabled in channels and private chats |
onlyForSelf | boolean | True, if the message needs to be pinned for one side only; private chats only |