class TelegramBot::User
- TelegramBot::User
- Reference
- Object
Defined in:
telegram_bot/types/user.crConstant Summary
-
FIELDS =
{id: Int32, is_bot: Bool, first_name: String, last_name: {type: String, nilable: true}, username: {type: String, nilable: true}, language_code: {type: String, nilable: true}}
Constructors
- .new(id : Int32, is_bot : Bool, first_name : String, last_name : String | Nil = nil, username : String | Nil = nil, language_code : String | Nil = nil)
- .new(__temp_1059 : JSON::PullParser)
Instance Method Summary
- #first_name : String
- #first_name=(_first_name : String)
- #id : Int32
- #id=(_id : Int32)
- #is_bot : Bool
- #is_bot=(_is_bot : Bool)
- #language_code : String | Nil
- #language_code=(_language_code : String | Nil)
- #last_name : String | Nil
- #last_name=(_last_name : String | Nil)
- #to_json(json : JSON::Builder)
- #username : String | Nil
- #username=(_username : String | Nil)
Constructor Detail
def self.new(id : Int32, is_bot : Bool, first_name : String, last_name : String | Nil = nil, username : String | Nil = nil, language_code : String | Nil = nil)
#