Interface PinChatMessage

Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned. Request type for Tdjson#pinChatMessage.

interface PinChatMessage {
    @type: "pinChatMessage";
    chat_id: number;
    disable_notification?: boolean;
    message_id: number;
    only_for_self?: boolean;
}

Properties

@type: "pinChatMessage"
chat_id: number

Identifier of the chat.

disable_notification?: boolean

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

message_id: number

Identifier of the new pinned message.

only_for_self?: boolean

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