Interface SendBusinessMessage

Sends a message on behalf of a business account; for bots only. Returns the message after it was sent. Request type for Tdjson#sendBusinessMessage.

interface SendBusinessMessage {
    @type: "sendBusinessMessage";
    business_connection_id: string;
    chat_id: number;
    disable_notification?: boolean;
    effect_id: string;
    input_message_content: InputMessageContent;
    protect_content?: boolean;
    reply_markup: ReplyMarkup;
    reply_to: InputMessageReplyTo;
}

Properties

@type: "sendBusinessMessage"
business_connection_id: string

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

chat_id: number

Target chat.

disable_notification?: boolean

Pass true to disable notification for the message.

effect_id: string

Identifier of the effect to apply to the message.

input_message_content: InputMessageContent

The content of the message to be sent.

protect_content?: boolean

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

reply_markup: ReplyMarkup

Markup for replying to the message; pass null if none.

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