class
TD::User
Included Modules
- JSON::Serializable
Defined in:
telegram/types/user.crConstructors
- .new(id : Int64, first_name : String, last_name : String, username : String, phone_number : String, status : TD::UserStatus, profile_photo : Union(TD::ProfilePhoto, Nil), restriction_reason : String, type : TD::UserType, language_code : String, is_contact : Bool = false, is_mutual_contact : Bool = false, is_verified : Bool = false, is_support : Bool = false, is_scam : Bool = false, is_fake : Bool = false, have_access : Bool = false)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #first_name : String
- #first_name=(first_name : String)
- #have_access : Bool
- #have_access=(have_access : Bool)
- #id : Int64
- #id=(id : Int64)
- #is_contact : Bool
- #is_contact=(is_contact : Bool)
- #is_fake : Bool
- #is_fake=(is_fake : Bool)
- #is_mutual_contact : Bool
- #is_mutual_contact=(is_mutual_contact : Bool)
- #is_scam : Bool
- #is_scam=(is_scam : Bool)
- #is_support : Bool
- #is_support=(is_support : Bool)
- #is_verified : Bool
- #is_verified=(is_verified : Bool)
- #language_code : String
- #language_code=(language_code : String)
- #last_name : String
- #last_name=(last_name : String)
- #object_type : String
- #object_type=(object_type : String)
- #phone_number : String
- #phone_number=(phone_number : String)
- #profile_photo : TD::ProfilePhoto?
- #profile_photo=(profile_photo : Nil | TD::ProfilePhoto)
- #restriction_reason : String
- #restriction_reason=(restriction_reason : String)
- #status : TD::UserStatus
- #status=(status : TD::UserStatus)
- #type : TD::UserType
- #type=(type : TD::UserType)
- #username : String
- #username=(username : String)
Instance methods inherited from class TD::Base
extract_abstract_type(__json : JSON::Any)
extract_abstract_type,
extract_type(__json : JSON::Any, class_type : Class)
extract_type
Macros inherited from class TD::Base
object_attributes(type)
object_attributes,
object_type(type)
object_type
Constructor Detail
def self.new(id : Int64, first_name : String, last_name : String, username : String, phone_number : String, status : TD::UserStatus, profile_photo : Union(TD::ProfilePhoto, Nil), restriction_reason : String, type : TD::UserType, language_code : String, is_contact : Bool = false, is_mutual_contact : Bool = false, is_verified : Bool = false, is_support : Bool = false, is_scam : Bool = false, is_fake : Bool = false, have_access : Bool = false)
#