# `ExGram.Model.BotSubscriptionUpdated`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.69.0/lib/ex_gram.ex#L4765)

This object contains information about changes to a user payment subscription toward the current bot.

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

- `user`: User who subscribed for payments toward the bot
- `invoice_payload`: Bot-specified invoice payload
- `state`: The new state of the subscription. Currently, it can be one of "canceled” if the user canceled the subscription, "active” if the user re-enabled a previously canceled subscription, or "failed” if payment for the subscription failed.

# `t`

```elixir
@type t() :: %ExGram.Model.BotSubscriptionUpdated{
  invoice_payload: String.t(),
  state: String.t(),
  user: ExGram.Model.User.t()
}
```

# `decode_as`

---

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