View Source ExTDLib.Method.PinChatMessage (ExTDLib v0.0.4)
Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel. Returns object_ptr<Ok>.
| Name | Type | Description |
|---|---|---|
| chat_id | string | Identifier of the chat. |
| message_id | string | Identifier of the new pinned message. |
| disable_notification | bool | Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats. |
| only_for_self | bool | Pass true to pin the message only for self; private chats only. |
More details on telegram's documentation.