Skip to content

toggleDirectMessagesChatTopicCanSendUnpaidMessages

Function · TDLib 1.8.67 · d1085f9c

Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user

toggleDirectMessagesChatTopicCanSendUnpaidMessages(
  chat_id: int53,
  topic_id: int53,
  can_send_unpaid_messages: Bool,
  refund_payments: Bool
) → Ok

chat_id

int53

Chat identifier

topic_id

int53

Identifier of the topic

can_send_unpaid_messages

Bool

Pass true to allow unpaid messages; pass false to disallow unpaid messages

refund_payments

Bool

Pass true to refund the user previously paid messages