Tourmaline::User
Inherits Tourmaline::Model < JSON::Serializable < Reference < Object
This object represents a Telegram user or bot.
Constructors
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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
add_sticker_to_set(name, png_sticker, emojis, mask_position = nil)
Sourcebot?
Sourcecan_join_groups?
Sourcecan_read_all_group_messages?
Sourcecreate_new_sticker_set(name, title, png_sticker, emojis, **kwargs)
Sourcefirst_name
Sourcefull_name
Sourceget_game_high_scores
Sourceid
Sourceinline_mention
Sourcelanguage_code
Sourcelast_name
Sourceprofile_photos(offset = nil, limit = nil)
Sourceset_game_score(score, **kwargs)
Sourcesupports_inline_queries?
Sourceupload_sticker_file(png_sticker)
Sourceusername
Source