class Tourmaline::User

Overview

This object represents a Telegram user or bot.

Included Modules

Defined in:

tourmaline/models/user.cr

Constructors

Instance Method Summary

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

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

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

[View source]
def added_to_attachment_menu? : Bool | Nil #

[View source]
def bot? : Bool #

[View source]
def can_join_groups? : Bool | Nil #

[View source]
def can_read_all_group_messages? : Bool | Nil #

[View source]
def create_new_sticker_set(name, title, png_sticker, emojis, **kwargs) #

[View source]
def first_name : String #

[View source]
def full_name #

[View source]
def get_game_high_scores(**kwargs) #

[View source]
def id : Int64 #

[View source]
def inline_mention #

[View source]
def language_code : String | Nil #

[View source]
def last_name : String | Nil #

[View source]
def premium? : Bool | Nil #

[View source]
def profile_photos(offset = nil, limit = nil) #

[View source]
def scam? : Bool | Nil #

[View source]
def set_game_score(score, **kwargs) #

[View source]
def supports_inline_queries? : Bool | Nil #

[View source]
def upload_sticker_file(png_sticker) #

[View source]
def username : String | Nil #

[View source]
def verified? : Bool | Nil #

[View source]