class Tourmaline::UserRating

Overview

This object describes the rating of a user based on their Telegram Star spendings.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(level : Int32 | Int64, rating : Int32 | Int64, current_level_rating : Int32 | Int64, next_level_rating : Int32 | Int64 | Nil = nil) #

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

[View source]

Instance Method Detail

def current_level_rating : Int32 | Int64 #

The rating value required to get the current level


[View source]
def current_level_rating=(current_level_rating : Int32 | Int64) #

The rating value required to get the current level


[View source]
def level : Int32 | Int64 #

Current level of the user, indicating their reliability when purchasing digital goods and services. A higher level suggests a more trustworthy customer; a negative level is likely reason for concern.


[View source]
def level=(level : Int32 | Int64) #

Current level of the user, indicating their reliability when purchasing digital goods and services. A higher level suggests a more trustworthy customer; a negative level is likely reason for concern.


[View source]
def next_level_rating : Int32 | Int64 | Nil #

Optional. The rating value required to get to the next level; omitted if the maximum level was reached


[View source]
def next_level_rating=(next_level_rating : Int32 | Int64 | Nil) #

Optional. The rating value required to get to the next level; omitted if the maximum level was reached


[View source]
def rating : Int32 | Int64 #

Numerical value of the user's rating; the higher the rating, the better


[View source]
def rating=(rating : Int32 | Int64) #

Numerical value of the user's rating; the higher the rating, the better


[View source]