Interface InputMessageText

The content of a message to send. Subtype of InputMessageContent.

interface InputMessageText {
    @type: "inputMessageText";
    clear_draft?: boolean;
    link_preview_options: LinkPreviewOptions;
    text: FormattedText;
}

Properties

@type: "inputMessageText"
clear_draft?: boolean

True, if a chat message draft must be deleted.

link_preview_options: LinkPreviewOptions

Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.

Formatted text to be sent; 0-getOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually.