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>.

NameTypeDescription
chat_idstringIdentifier of the chat.
message_idstringIdentifier of the new pinned message.
disable_notificationboolPass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats.
only_for_selfboolPass true to pin the message only for self; private chats only.

More details on telegram's documentation.