5 #ifndef TGBOT_MESSAGEENTITY_H 6 #define TGBOT_MESSAGEENTITY_H 21 typedef std::shared_ptr<MessageEntity>
Ptr;
50 #endif //TGBOT_MESSAGEENTITY_H std::shared_ptr< MessageEntity > Ptr
User::Ptr user
Optional. For “text_mention” only, the mentioned user.
std::string url
Optional. For “text_link” only, url that will be opened after user taps on the text.
int32_t offset
Offset in UTF-16 code units to the start of the entity.
int32_t length
Length of the entity in UTF-16 code units.
std::string type
Type of the entity. One of mention (), hashtag, bot_command, url, email, bold (bold text)...
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
std::shared_ptr< User > Ptr