class Tourmaline::User
- Tourmaline::User
 - Reference
 - Object
 
Overview
This object represents a Telegram user or bot.
Included Modules
- JSON::Serializable
 
Defined in:
tourmaline/models/user.crConstructors
- .new(id : Int64, bot : Bool, first_name : String, last_name : String | Nil = nil, language_code : String | Nil = 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
- #added_to_attachment_menu? : Bool | Nil
 - #bot? : Bool
 - #can_join_groups? : Bool | Nil
 - #can_read_all_group_messages? : Bool | Nil
 - #first_name : String
 - #full_name
 - #id : Int64
 - #inline_mention(name)
 - #language_code : String | Nil
 - #last_name : String | Nil
 - #premium? : Bool | Nil
 - #scam? : Bool | Nil
 - #supports_inline_queries? : Bool | Nil
 - #username : String | Nil
 - #verified? : Bool | Nil
 
Constructor Detail
        
        def self.new(id : Int64, bot : Bool, first_name : String, last_name : String | Nil = nil, language_code : String | Nil = nil, can_join_groups : Bool | Nil = nil, can_read_all_group_messages : Bool | Nil = nil, supports_inline_queries : Bool | Nil = nil)
        #