Skip to content

User

class Tourmaline::User
inherits Reference #

This object represents a Telegram user or bot.##

Included modules#

JSON::Serializable Tourmaline::Model

Class methods#

.new(pull : JSON::PullParser) #

Methods#

#add_sticker_to_set(name, png_sticker, emojis, mask_position = nil) #

#can_join_groups : Bool? #

#can_read_all_group_messages : Bool? #

#client : Tourmaline::Client #

#client=(client : Tourmaline::Client) #

#client? : Tourmaline::Client? #

#create_new_sticker_set(name, title, png_sticker, emojis, **kwargs) #

#first_name : String #

#full_name #

#get_game_high_scores(**kwargs) #

#id : Int64 #

#inline_mention #

#is_bot : Bool #

#language_code : String? #

#last_name : String? #

#profile_photos(offset = nil, limit = nil) #

#set_game_score(score, **kwargs) #

#supports_inline_queries : Bool? #

#upload_sticker_file(png_sticker) #

#username : String? #