Interface SetBusinessMessageIsPinned

Pins or unpins a message sent on behalf of a business account; for bots only. Request type for Tdjson#setBusinessMessageIsPinned.

interface SetBusinessMessageIsPinned {
    @type: "setBusinessMessageIsPinned";
    business_connection_id: string;
    chat_id: number;
    is_pinned?: boolean;
    message_id: number;
}

Properties

@type: "setBusinessMessageIsPinned"
business_connection_id: string

Unique identifier of business connection on behalf of which the message was sent.

chat_id: number

The chat the message belongs to.

is_pinned?: boolean

Pass true to pin the message, pass false to unpin it.

message_id: number

Identifier of the message.