Skip to content

sendBusinessMessage

Function · TDLib 1.8.67 · d1085f9c

Sends a message on behalf of a business account; for bots only. Returns the message after it was sent

sendBusinessMessage(
  business_connection_id: string,
  chat_id: int53,
  reply_to: InputMessageReplyTo,
  disable_notification: Bool,
  protect_content: Bool,
  effect_id: int64,
  reply_markup: ReplyMarkup,
  input_message_content: InputMessageContent
) → BusinessMessage

business_connection_id

string

Unique identifier of business connection on behalf of which to send the request

chat_id

int53

Target chat

reply_to

InputMessageReplyTo

Information about the message to be replied; pass null if none

disable_notification

Bool

Pass true to disable notification for the message

protect_content

Bool

Pass true if the content of the message must be protected from forwarding and saving

effect_id

int64

Identifier of the effect to apply to the message

reply_markup

ReplyMarkup

Markup for replying to the message; pass null if none

input_message_content

InputMessageContent

The content of the message to be sent