pin_chat_message


Description:

public async Ok pin_chat_message (int64 chat_id, int64 message_id, bool disable_notification, bool only_for_self) throws TDLibError

Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned

Parameters:

chat_id

Identifier of the chat

message_id

Identifier of the new pinned message

disable_notification

Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats

only_for_self

Pass true to pin the message only for self; private chats only