MessageEntity

Message entities, representing styled text in a message

messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity;
messageEntityMention#fa04579d offset:int length:int = MessageEntity;
messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity;
messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity;
messageEntityUrl#6ed02538 offset:int length:int = MessageEntity;
messageEntityEmail#64e475c2 offset:int length:int = MessageEntity;
messageEntityBold#bd610bc9 offset:int length:int = MessageEntity;
messageEntityItalic#826f8b60 offset:int length:int = MessageEntity;
messageEntityCode#28a20571 offset:int length:int = MessageEntity;
messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity;
messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity;
messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity;
inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity;
messageEntityPhone#9b69e34b offset:int length:int = MessageEntity;
messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity;
messageEntityUnderline#9c4e7e8b offset:int length:int = MessageEntity;
messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity;
messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity;

Constructors

Constructor Description
messageEntityUnknown Unknown message entity
messageEntityMention Message entity mentioning the current user
messageEntityHashtag #hashtag message entity
messageEntityBotCommand Message entity representing a bot /command
messageEntityUrl Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.
messageEntityEmail Message entity representing an email@example.com.
messageEntityBold Message entity representing bold text.
messageEntityItalic Message entity representing italic text.
messageEntityCode Message entity representing a codeblock.
messageEntityPre Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.
messageEntityTextUrl Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.
messageEntityMentionName Message entity representing a user mention: for creating a mention use inputMessageEntityMentionName.
inputMessageEntityMentionName Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.
messageEntityPhone Message entity representing a phone number.
messageEntityCashtag Message entity representing a $cashtag.
messageEntityUnderline Message entity representing underlined text.
messageEntityStrike Message entity representing strikethrough text.
messageEntityBlockquote Message entity representing a block quote.