ExGram.Model.BotSubscriptionUpdated (ex_gram v0.69.0)

Copy Markdown View Source

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

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

Summary

Types

t()

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

Functions

decode_as()