Available types

UserRating

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

fields

fieldtyperequireddescription
levelnumberrequiredCurrent 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.
ratingnumberrequiredNumerical value of the user's rating; the higher the rating, the better
current_level_ratingnumberrequiredThe rating value required to get the current level
next_level_ratingnumberoptionalOptional. The rating value required to get to the next level; omitted if the maximum level was reached

import

types.ts
import type { UserRating } from "@yaebal/types";

used by

types