peyk.platforms.telegram.types.bot_subscription_updated

Classes

BotSubscriptionUpdated(user, ...)

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

class peyk.platforms.telegram.types.bot_subscription_updated.BotSubscriptionUpdated(user: User, invoice_payload: str, state: str)[source]

Bases: object

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

Variables:
  • user (peyk.platforms.telegram.types.user.User) – User who subscribed for payments toward the bot

  • invoice_payload (str) – Bot-specified invoice payload

  • state (str) – 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.

user: User
invoice_payload: str
state: str
classmethod from_dict(data)
subscription = None