String Type of the entity. One of mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)
Integer Offset in UTF-16 code units to the start of the entity
Integer Length of the entity in UTF-16 code units
String Optional For "text_link" only, url that will be opened after user taps on the text
User Optional. For "text_mention" only, the mentioned user
Integer Length of the entity in UTF-16 code units
Integer Offset in UTF-16 code units to the start of the entity
String Type of the entity.
String Type of the entity. One of mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)
String Optional For "text_link" only, url that will be opened after user taps on the text
User Optional.
User Optional. For "text_mention" only, the mentioned user
This object represents one special entity in a text message.
For example, hashtags, usernames, URLs, etc.
String Type of the entity. One of mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)
Integer Offset in UTF-16 code units to the start of the entity
Integer Length of the entity in UTF-16 code units
String Optional For "text_link" only, url that will be opened after user taps on the text
User Optional. For "text_mention" only, the mentioned user