Message entity representing a text url: for in-text urls like 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 ยป.

messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity;


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



Related pages

Styled text with message entities

How to create styled text with message entities


Message entity representing an in-text url:; for text urls, use messageEntityTextUrl.

Client configuration

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.