Interface SendMessage

Sends a message. Returns the sent message. Request type for Tdjson#sendMessage.

interface SendMessage {
    @type: "sendMessage";
    chat_id: number;
    input_message_content: InputMessageContent;
    options: MessageSendOptions;
    reply_markup: ReplyMarkup;
    reply_to: InputMessageReplyTo;
    topic_id: MessageTopic;
}

Properties

@type: "sendMessage"
chat_id: number

Target chat.

input_message_content: InputMessageContent

The content of the message to be sent.

Options to be used to send the message; pass null to use default options.

reply_markup: ReplyMarkup

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

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

topic_id: MessageTopic

Topic in which the message will be sent; pass null if none.