class Tourmaline::User

Overview

This object represents a Telegram user or bot.

Included Modules

Defined in:

tourmaline/models/user.cr

Constructors

Instance Method Summary

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 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 first_name : String #

[View source]
def full_name #

[View source]
def id : Int64 #

[View source]
def inline_mention(name) #

[View source]
def language_code : String | Nil #

[View source]
def last_name : String | Nil #

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

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

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

[View source]
def username : String | Nil #

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

[View source]