User
This object represents a Telegram user or bot.
Поля
idInteger
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.
is_botBoolean
True, if this user is a bot
first_nameString
User's or bot's first name
User's or bot's last name
User's or bot's username
IETF language tag of the user's language
True, if the bot can be invited to groups. Returned only in getMe.
True, if privacy mode is disabled for the bot. Returned only in getMe.
True, if the bot supports guest queries from chats it is not a member of. Returned only in getMe.
True, if the bot supports inline queries. Returned only in getMe.
True, if the bot can be connected to a user account to manage it. Returned only in getMe.
True, if the bot has a main Web App. Returned only in getMe.
True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
True, if the bot allows users to create and delete topics in private chats. Returned only in getMe.
True, if other bots can be created to be controlled by the bot. Returned only in getMe.
True, if the bot supports join request queries and can be assigned to process them. Returned only in getMe.
Минимальный JSON
JSON
{
"id": 1780243423,
"is_bot": true,
"first_name": "..."
}Где используется
Методы
Типы
AffiliateInfoBotAccessSettingsBotSubscriptionUpdatedBusinessConnectionCallbackQueryChatBoostSourceGiftCodeChatBoostSourceGiveawayChatBoostSourcePremiumChatFullInfoChatInviteLinkChatJoinRequestChatMemberAdministratorChatMemberBannedChatMemberLeftChatMemberMemberChatMemberOwnerChatMemberRestrictedChatMemberUpdatedChatOwnerChangedChatOwnerLeftChecklistTaskChosenInlineResultDirectMessagesTopicGameHighScoreGiveawayWinnersInlineQueryManagedBotCreatedManagedBotUpdatedMessageMessageEntityMessageOriginUserMessageReactionUpdatedOwnedGiftRegularOwnedGiftUniquePaidMediaPurchasedPollAnswerPollOptionPreCheckoutQueryProximityAlertTriggeredRichTextTextMentionShippingQueryTransactionPartnerAffiliateProgramTransactionPartnerUserVideoChatParticipantsInvited