# `ExGram.Model.UserRating`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram.ex#L5256)

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

Check the [documentation of this model on Telegram Bot API](https://core.telegram.org/bots/api#userrating)

- `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.
- `rating`: Numerical value of the user's rating; the higher the rating, the better
- `current_level_rating`: The rating value required to get the current level
- `next_level_rating (optional)`: Optional. The rating value required to get to the next level; omitted if the maximum level was reached

# `t`

```elixir
@type t() :: %ExGram.Model.UserRating{
  current_level_rating: integer(),
  level: integer(),
  next_level_rating: integer() | nil,
  rating: integer()
}
```

# `decode_as`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
