UserRating

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

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

Fields

FieldTypeRequiredDescription
levelIntegerAlwaysCurrent 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.
ratingIntegerAlwaysNumerical value of the user's rating; the higher the rating, the better
current_level_ratingIntegerAlwaysThe rating value required to get the current level
next_level_ratingIntegerOptionalThe rating value required to get to the next level; omitted if the maximum level was reached
Botlify Cloud Runtime
Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.