BotSubscriptionUpdated
This object contains information about changes to a user payment subscription toward the current bot.
fields
| field | type | required | description |
|---|---|---|---|
user | User | required | User who subscribed for payments toward the bot |
invoice_payload | string | required | Bot-specified invoice payload |
state | "canceled" | "active" | "failed" | required | 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. |
import
import type { BotSubscriptionUpdated } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#botsubscriptionupdated