User class
Represents a user.
- Inheritance
- Available Extensions
Constructors
- User({required int id, required String first_name, required String last_name, Usernames? usernames, required String phone_number, required UserStatus status, ProfilePhoto? profile_photo, EmojiStatus? emoji_status, required bool is_contact, required bool is_mutual_contact, required bool is_close_friend, required bool is_verified, required bool is_support, required String restriction_reason, required bool is_scam, required bool is_fake, required bool has_active_stories, required bool has_unread_active_stories, required bool have_access, required UserType type, required String language_code, int? extra, int? clientId})
- Represents a user
Properties
- 
  True, if the user added the current bot to attachment menu; only available to bots.
  read / write
- clientId ↔ int?
- 
  TDLib client instance identifier, for which the response was received.
  read / writeoverride
- emoji_status ↔ EmojiStatus?
- 
  Emoji status to be shown instead of the default Telegram Premium badge; may be null. For Telegram Premium users only.
  read / write
- extra ↔ int?
- 
  Request identifier. Must be non-zero.
  read / writeoverride
- first_name ↔ String
- 
  First name of the user.
  read / write
- has_active_stories ↔ bool
- 
  True, if the user has non-expired stories available to the current user.
  read / write
- has_unread_active_stories ↔ bool
- 
  True, if the user has unread non-expired stories available to the current user.
  read / write
- hashCode → int
- 
  The hash code for this object.
  read-onlyinherited
- have_access ↔ bool
- 
  If false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of the user can't be passed to any method.
  read / write
- id ↔ int
- 
  User identifier.
  read / write
- is_close_friend ↔ bool
- 
  The user is a close friend of the current user; implies that the user is a contact.
  read / write
- is_contact ↔ bool
- 
  The user is a contact of the current user.
  read / write
- is_fake ↔ bool
- 
  True, if many users reported this user as a fake account.
  read / write
- is_mutual_contact ↔ bool
- 
  The user is a contact of the current user and the current user is a contact of the user.
  read / write
- 
  True, if the user is a Telegram Premium user.
  read / write
- is_scam ↔ bool
- 
  True, if many users reported this user as a scam.
  read / write
- is_support ↔ bool
- 
  True, if the user is Telegram support account.
  read / write
- is_verified ↔ bool
- 
  True, if the user is verified.
  read / write
- language_code ↔ String
- 
  IETF language tag of the user's language; only available to bots.
  read / write
- last_name ↔ String
- 
  Last name of the user.
  read / write
- phone_number ↔ String
- 
  Phone number of the user.
  read / write
- profile_photo ↔ ProfilePhoto?
- 
  Profile photo of the user; may be null.
  read / write
- restriction_reason ↔ String
- 
  If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
  read / write
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  read-onlyinherited
- status ↔ UserStatus
- 
  Current online status of the user.
  read / write
- type ↔ UserType
- 
  Type of the user.
  read / write
- usernames ↔ Usernames?
- 
  Usernames of the user; may be null.
  read / write
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toJson() → Map< String, dynamic> 
- 
  Object to Map serializer
  override
- 
  toString() → String 
- 
  A string representation of this object.
  override
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
Constants
- CONSTRUCTOR → const String
- 
  @type
  
    "user"