Skip to content

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

View source

Methods#

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

View source

#can_join_groups : Bool? #

View source

#can_read_all_group_messages : Bool? #

View source

#client : Tourmaline::Client #

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

View source

#client? : Tourmaline::Client? #

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

View source

#first_name : String #

View source

#full_name #

View source

#get_game_high_scores(**kwargs) #

View source

#id : Int64 #

View source

#inline_mention #

View source

#is_bot : Bool #

View source

#is_scam? : Bool? #

USER API ONLY

View source

#is_verified? : Bool? #

USER API ONLY

View source

#language_code : String? #

View source

#last_name : String? #

View source

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

View source

#set_game_score(score, **kwargs) #

View source

#supports_inline_queries : Bool? #

View source

#upload_sticker_file(png_sticker) #

View source

#username : String? #

View source