mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 04:07:20 +01:00
1.4 KiB
1.4 KiB
title | description |
---|---|
inputMessageText | Text message |
Constructor: inputMessageText
Text message
Attributes:
Name | Type | Required | Description |
---|---|---|---|
text | string | Yes | Text to send |
disable_web_page_preview | Bool | Yes | Pass true to disable rich preview for link in the message text |
clear_draft | Bool | Yes | Pass true if chat draft message should be deleted |
entities | Array of MessageEntity | Yes | Bold, Italic, Code, Pre, PreCode and TextUrl entities contained in the text. Non-bot users can't use TextUrl entities. Can't be used with non-null parse_mode |
parse_mode | TextParseMode | Yes | Text parse mode, nullable. Can't be used along with enitities |
Type: InputMessageContent
Example:
$inputMessageText = ['_' => 'inputMessageText', 'text' => string, 'disable_web_page_preview' => Bool, 'clear_draft' => Bool, 'entities' => [MessageEntity], 'parse_mode' => TextParseMode, ];
Or, if you're into Lua:
inputMessageText={_='inputMessageText', text=string, disable_web_page_preview=Bool, clear_draft=Bool, entities={MessageEntity}, parse_mode=TextParseMode, }