MadelineProtoDocs/docs/API_docs/constructors/messageEntityTextUrl.md
2024-05-01 14:53:46 +02:00

1.5 KiB

title description nav_exclude image
messageEntityTextUrl Message entity representing a text url: for in-text urls like <https://google.com> use messageEntityUrl. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageEntityTextUrl

Back to constructors index

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

Note that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain satisfies the conditions specified in the domain whitelist documentation ».

Attributes:

Name Type Required Description
offset int Yes Offset of message entity within message (in UTF-16 code units)
length int Yes Length of message entity within message (in UTF-16 code units)
url string Yes The actual URL

Type: MessageEntity

Example:

$messageEntityTextUrl = ['_' => 'messageEntityTextUrl', 'offset' => int, 'length' => int, 'url' => 'string'];