class

Tourmaline::UserRating

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(level : Int32 | Int64, rating : Int32 | Int64, current_level_rating : Int32 | Int64, next_level_rating : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

current_level_rating

The rating value required to get the current level

Source
current_level_rating=(current_level_rating : Int32 | Int64)

The rating value required to get the current level

Source
level

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.

Source
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.

Source
next_level_rating

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

Source
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

Source
rating

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

Source
rating=(rating : Int32 | Int64)

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

Source