class TelegramBot::User
- TelegramBot::User
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/user.crConstructors
- .new(id : Int64, is_bot : Bool, first_name : String, *, last_name : Nil | String = nil, username : Nil | String = nil, language_code : Nil | String = nil, can_join_groups : Bool | Nil = nil, can_read_all_group_messages : Bool | Nil = nil, supports_inline_queries : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #can_join_groups=(can_join_groups : Bool | Nil)
- #can_join_groups? : Bool | Nil
- #can_read_all_group_messages=(can_read_all_group_messages : Bool | Nil)
- #can_read_all_group_messages? : Bool | Nil
- #first_name : String
- #first_name=(first_name : String)
- #id : Int64
- #id=(id : Int64)
- #is_bot=(is_bot : Bool)
- #is_bot? : Bool
- #language_code : String | Nil
- #language_code=(language_code : String | Nil)
- #last_name : String | Nil
- #last_name=(last_name : String | Nil)
- #supports_inline_queries=(supports_inline_queries : Bool | Nil)
- #supports_inline_queries? : Bool | Nil
- #username : String | Nil
- #username=(username : String | Nil)
Constructor Detail
def self.new(id : Int64, is_bot : Bool, first_name : String, *, last_name : Nil | String = nil, username : Nil | String = nil, language_code : Nil | String = nil, can_join_groups : Bool | Nil = nil, can_read_all_group_messages : Bool | Nil = nil, supports_inline_queries : Bool | Nil = nil)
#