18 typedef std::shared_ptr<User>
Ptr;
This object represents a Telegram user or bot.
std::int64_t id
Unique identifier for this user or bot.
bool canJoinGroups
Optional. True, if the bot can be invited to groups. Returned only in Api::getMe.
std::string username
Optional. User's or bot's username.
std::string lastName
Optional. User's or bot's last name.
bool addedToAttachmentMenu
Optional. True, if this user added the bot to the attachment menu.
std::string firstName
User's or bot's first name.
bool isBot
True, if this user is a bot.
bool isPremium
Optional. True, if this user is a Telegram Premium user.
std::shared_ptr< User > Ptr
std::string languageCode
Optional. IETF language tag of the user's language.
bool canReadAllGroupMessages
Optional. True, if privacy mode is disabled for the bot. Returned only in Api::getMe.
bool supportsInlineQueries
Optional. True, if the bot supports inline queries. Returned only in Api::getMe.