class Tourmaline::User
- Tourmaline::User
- Reference
- Object
Overview
This object represents a Telegram user or bot.
Included Modules
- JSON::Serializable
- Tourmaline::Model
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
- #add_sticker_to_set(name, png_sticker, emojis, mask_position = nil)
- #added_to_attachment_menu? : Bool | Nil
- #bot? : Bool
- #can_join_groups? : Bool | Nil
- #can_read_all_group_messages? : Bool | Nil
- #create_new_sticker_set(name, title, png_sticker, emojis, **kwargs)
- #first_name : String
- #full_name
- #get_game_high_scores(**kwargs)
- #id : Int64
- #inline_mention
- #language_code : String | Nil
- #last_name : String | Nil
- #premium? : Bool | Nil
- #profile_photos(offset = nil, limit = nil)
- #scam? : Bool | Nil
- #set_game_score(score, **kwargs)
- #supports_inline_queries? : Bool | Nil
- #upload_sticker_file(png_sticker)
- #username : String | Nil
- #verified? : Bool | Nil
Instance methods inherited from module Tourmaline::Model
client : Tourmaline::Client
client,
client=(client : Tourmaline::Client)
client=,
client? : Tourmaline::Client | Nil
client?,
finish_init(client : Tourmaline::Client)
finish_init
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)
#