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.
std::string username
Optional. User's or bot's username.
bool canConnectToBusiness
Optional. True, if the bot can be connected to a Telegram Business account to receive its messages.
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.
bool supportsInlineQueries
Optional. True, if the bot supports inline queries.