class

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

add_sticker_to_set(name, png_sticker, emojis, mask_position = nil)
Source
added_to_attachment_menu?
Source
bot?
Source
can_join_groups?
Source
can_read_all_group_messages?
Source
create_new_sticker_set(name, title, png_sticker, emojis, **kwargs)
Source
first_name
Source
full_name
Source
get_game_high_scores
Source
inline_mention
Source
language_code
Source
last_name
Source
premium?
Source
profile_photos(offset = nil, limit = nil)
Source
scam?

USER API ONLY

Source
set_game_score(score, **kwargs)
Source
supports_inline_queries?
Source
upload_sticker_file(png_sticker)
Source
username
Source
verified?

USER API ONLY

Source