class TD::Session

Included Modules

Defined in:

telegram/types/session.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 : String, api_id : Int32, application_name : String, application_version : String, device_model : String, platform : String, system_version : String, log_in_date : Int32, last_active_date : Int32, ip : String, country : String, region : String, is_current : Bool = false, is_password_pending : Bool = false, can_accept_secret_chats : Bool = false, can_accept_calls : Bool = false, is_official_application : 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 api_id : Int32 #

def api_id=(api_id : Int32) #

def application_name : String #

def application_name=(application_name : String) #

def application_version : String #

def application_version=(application_version : String) #

def can_accept_calls : Bool #

def can_accept_calls=(can_accept_calls : Bool) #

def can_accept_secret_chats : Bool #

def can_accept_secret_chats=(can_accept_secret_chats : Bool) #

def country : String #

def country=(country : String) #

def device_model : String #

def device_model=(device_model : String) #

def id : String #

def id=(id : String) #

def ip : String #

def ip=(ip : String) #

def is_current : Bool #

def is_current=(is_current : Bool) #

def is_official_application : Bool #

def is_official_application=(is_official_application : Bool) #

def is_password_pending : Bool #

def is_password_pending=(is_password_pending : Bool) #

def last_active_date : Int32 #

def last_active_date=(last_active_date : Int32) #

def log_in_date : Int32 #

def log_in_date=(log_in_date : Int32) #

def object_type : String #

def object_type=(object_type : String) #

def platform : String #

def platform=(platform : String) #

def region : String #

def region=(region : String) #

def system_version : String #

def system_version=(system_version : String) #