class TelegramBot::User

Defined in:

telegram_bot/types/user.cr

Constant 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

Instance Method Summary

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

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

[View source]

Instance Method Detail

def first_name : String #

[View source]
def first_name=(_first_name : String) #

[View source]
def id : Int32 #

[View source]
def id=(_id : Int32) #

[View source]
def is_bot : Bool #

[View source]
def is_bot=(_is_bot : Bool) #

[View source]
def language_code : String | Nil #

[View source]
def language_code=(_language_code : String | Nil) #

[View source]
def last_name : String | Nil #

[View source]
def last_name=(_last_name : String | Nil) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def username : String | Nil #

[View source]
def username=(_username : String | Nil) #

[View source]