Skip to content

setBusinessMessageIsPinned

Function · TDLib 1.8.67 · d1085f9c

Pins or unpins a message sent on behalf of a business account; for bots only

setBusinessMessageIsPinned(
  business_connection_id: string,
  chat_id: int53,
  message_id: int53,
  is_pinned: Bool
) → Ok

business_connection_id

string

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

chat_id

int53

The chat the message belongs to

message_id

int53

Identifier of the message

is_pinned

Bool

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