GramIO API Reference / gramio/dist / TelegramBotSubscriptionUpdated
Interface: TelegramBotSubscriptionUpdated
Defined in: @gramio/types/out/objects.d.ts:2510
This object contains information about changes to a user payment subscription toward the current bot.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
invoice_payload | string | Bot-specified invoice payload | @gramio/types/out/objects.d.ts:2518 |
state | TelegramBotSubscriptionUpdatedState | 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. | @gramio/types/out/objects.d.ts:2522 |
user | TelegramUser | User who subscribed for payments toward the bot | @gramio/types/out/objects.d.ts:2514 |