Skip to content

pinChatMessage

Function · TDLib 1.8.67 · d1085f9c

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

pinChatMessage(
  chat_id: int53,
  message_id: int53,
  disable_notification: Bool,
  only_for_self: Bool
) → Ok

chat_id

int53

Identifier of the chat

message_id

int53

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