1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 13:06:55 +01:00
MadelineProto/docs/TD_docs/constructors/messageText.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1023 B

title description
messageText Text message

Constructor: messageText

Back to constructors index

Text message

Attributes:

Name Type Required Description
text string Yes Text of the message
entities Array of MessageEntity Yes Entities contained in the text
web_page webPage Yes Preview of a web page mentioned in the text, nullable

Type: MessageContent

Example:

$messageText = ['_' => 'messageText', 'text' => 'string', 'entities' => [MessageEntity], 'web_page' => webPage];

PWRTelegram json-encoded version:

{"_": "messageText", "text": "string", "entities": [MessageEntity], "web_page": webPage}

Or, if you're into Lua:

messageText={_='messageText', text='string', entities={MessageEntity}, web_page=webPage}