class
TD::Session
- TD::Session
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/session.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #api_id : Int32
- #api_id=(api_id : Int32)
- #application_name : String
- #application_name=(application_name : String)
- #application_version : String
- #application_version=(application_version : String)
- #can_accept_calls : Bool
- #can_accept_calls=(can_accept_calls : Bool)
- #can_accept_secret_chats : Bool
- #can_accept_secret_chats=(can_accept_secret_chats : Bool)
- #country : String
- #country=(country : String)
- #device_model : String
- #device_model=(device_model : String)
- #id : String
- #id=(id : String)
- #ip : String
- #ip=(ip : String)
- #is_current : Bool
- #is_current=(is_current : Bool)
- #is_official_application : Bool
- #is_official_application=(is_official_application : Bool)
- #is_password_pending : Bool
- #is_password_pending=(is_password_pending : Bool)
- #last_active_date : Int32
- #last_active_date=(last_active_date : Int32)
- #log_in_date : Int32
- #log_in_date=(log_in_date : Int32)
- #object_type : String
- #object_type=(object_type : String)
- #platform : String
- #platform=(platform : String)
- #region : String
- #region=(region : String)
- #system_version : String
- #system_version=(system_version : 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 : 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)
#