1#ifndef TGBOT_MESSAGEENTITY_H
2#define TGBOT_MESSAGEENTITY_H
20 typedef std::shared_ptr<MessageEntity>
Ptr;
26 Mention,
Hashtag,
Cashtag,
BotCommand,
Url,
Email,
PhoneNumber,
Bold,
Italic,
Underline,
Strikethrough,
Spoiler,
Code,
Pre,
TextLink,
TextMention,
CustomEmoji
This object represents one special entity in a text message. For example, hashtags,...
std::string url
Optional. For “text_link” only, URL that will be opened after user taps on the text.
std::int32_t offset
Offset in UTF-16 code units to the start of the entity.
std::shared_ptr< MessageEntity > Ptr
Type
Enum of possible types.
std::string language
Optional. For “pre” only, the programming language of the entity text.
std::string customEmojiId
Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use Api::getCustomEmojiStic...
Type type
Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag),...
std::int32_t length
Length of the entity in UTF-16 code units.
User::Ptr user
Optional. For “text_mention” only, the mentioned user.
std::shared_ptr< User > Ptr