Td Api User - OTR/Kotlin-Telegram-Client GitHub Wiki

Class TdApi.User

Description

Represents a user.

Properties

  • addedToAttachmentMenu : Boolean - True, if the user added the current bot to attachment menu; only available to bots.
  • emojiStatus : TdApi.EmojiStatus - Emoji status to be shown instead of the default Telegram Premium badge; may be null.
  • firstName : String - First name of the user.
  • haveAccess : Boolean - If false, the user is inaccessible, and the only information known about the user is inside this class.
  • id : Long - User identifier.
  • isContact : Boolean - The user is a contact of the current user.
  • isFake : Boolean - True, if many users reported this user as a fake account.
  • isMutualContact : Boolean - The user is a contact of the current user and the current user is a contact of the user.
  • isPremium : Boolean - True, if the user is a Telegram Premium user.
  • isScam : Boolean - True, if many users reported this user as a scam.
  • isSupport : Boolean - True, if the user is Telegram support account.
  • isVerified : Boolean - True, if the user is verified.
  • languageCode : String - IETF language tag of the user's language; only available to bots.
  • lastName : String - Last name of the user.
  • phoneNumber : String - Phone number of the user.
  • profilePhoto : TdApi.ProfilePhoto - Profile photo of the user; may be null.
  • restrictionReason : String - If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
  • status : TdApi.UserStatus - Current online status of the user.
  • type : TdApi.UserType - Type of the user.
  • usernames : TdApi.Usernames - Usernames of the user; may be null.

Example

Reference