1#ifndef TGBOT_MESSAGEENTITY_H
2#define TGBOT_MESSAGEENTITY_H
22 typedef std::shared_ptr<MessageEntity>
Ptr;
28 Mention,
Hashtag,
Cashtag,
BotCommand,
Url,
Email,
PhoneNumber,
Bold,
Italic,
Underline,
Strikethrough,
Spoiler,
Blockquote,
Code,
Pre,
TextLink,
TextMention,
CustomEmoji
This object represents one special entity in a text message.
std::string url
Optional. For Type::TextLink 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 Type::Pre only, the programming language of the entity text.
std::string customEmojiId
Optional. For Type::CustomEmoji only, unique identifier of the custom emoji.
Type type
Type of the entity.
std::int32_t length
Length of the entity in UTF-16 code units
User::Ptr user
Optional. For Type::TextMention only, the mentioned user.
std::shared_ptr< User > Ptr