|
| std::int64_t | id { } |
| | Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
|
| bool | isBot { } |
| | True, if this user is a bot.
|
| std::string | firstName { } |
| | User's or bot's first name.
|
| std::optional< std::string > | lastName { } |
| | Optional. User's or bot's last name.
|
| std::optional< std::string > | username { } |
| | Optional. User's or bot's username.
|
| std::optional< std::string > | languageCode { } |
| | Optional. IETF language tag of the user's language.
|
| std::optional< bool > | isPremium { } |
| | Optional. True, if this user is a Telegram Premium user.
|
| std::optional< bool > | addedToAttachmentMenu { } |
| | Optional. True, if this user added the bot to the attachment menu.
|
| std::optional< bool > | canJoinGroups { } |
| | Optional. True, if the bot can be invited to groups. Returned only in getMe.
|
| std::optional< bool > | canReadAllGroupMessages { } |
| | Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
|
| std::optional< bool > | supportsGuestQueries { } |
| | Optional. True, if the bot supports guest queries from chats it is not a member of. Returned only in getMe.
|
| std::optional< bool > | supportsInlineQueries { } |
| | Optional. True, if the bot supports inline queries. Returned only in getMe.
|
| std::optional< bool > | canConnectToBusiness { } |
| | Optional. True, if the bot can be connected to a user account to manage it. Returned only in getMe.
|
| std::optional< bool > | hasMainWebApp { } |
| | Optional. True, if the bot has a main Web App. Returned only in getMe.
|
| std::optional< bool > | hasTopicsEnabled { } |
| | Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
|
| std::optional< bool > | allowsUsersToCreateTopics { } |
| | Optional. True, if the bot allows users to create and delete topics in private chats. Returned only in getMe.
|
| std::optional< bool > | canManageBots { } |
| | Optional. True, if other bots can be created to be controlled by the bot. Returned only in getMe.
|
| std::optional< bool > | supportsJoinRequestQueries { } |
| | Optional. True, if the bot supports join request queries and can be assigned to process them. Returned only in getMe.
|
This object represents a Telegram user or bot.
Definition at line 14786 of file Types.h.