class TD::User

Included Modules

Defined in:

telegram/types/user.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def first_name : String #

def first_name=(first_name : String) #

def have_access : Bool #

def have_access=(have_access : Bool) #

def id : Int64 #

def id=(id : Int64) #

def is_contact : Bool #

def is_contact=(is_contact : Bool) #

def is_fake : Bool #

def is_fake=(is_fake : Bool) #

def is_mutual_contact : Bool #

def is_mutual_contact=(is_mutual_contact : Bool) #

def is_scam : Bool #

def is_scam=(is_scam : Bool) #

def is_support : Bool #

def is_support=(is_support : Bool) #

def is_verified : Bool #

def is_verified=(is_verified : Bool) #

def language_code : String #

def language_code=(language_code : String) #

def last_name : String #

def last_name=(last_name : String) #

def object_type : String #

def object_type=(object_type : String) #

def phone_number : String #

def phone_number=(phone_number : String) #

def profile_photo : TD::ProfilePhoto? #

def profile_photo=(profile_photo : Nil | TD::ProfilePhoto) #

def restriction_reason : String #

def restriction_reason=(restriction_reason : String) #

def status : TD::UserStatus #

def status=(status : TD::UserStatus) #

def type : TD::UserType #

def type=(type : TD::UserType) #

def username : String #

def username=(username : String) #