Interface EditMessageText

Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side. Request type for Tdjson#editMessageText.

interface EditMessageText {
    @type: "editMessageText";
    chat_id: number;
    input_message_content: InputMessageContent;
    message_id: number;
    reply_markup: ReplyMarkup;
}

Properties

@type: "editMessageText"
chat_id: number

The chat the message belongs to.

input_message_content: InputMessageContent

New text content of the message. Must be of type inputMessageText.

message_id: number

Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited.

reply_markup: ReplyMarkup

The new message reply markup; pass null if none; for bots only.