Skip to content

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.

Documentation

Properties

PropertyTypeDescriptionDefined in
invoice_payloadstringBot-specified invoice payload@gramio/types/out/objects.d.ts:2518
stateTelegramBotSubscriptionUpdatedStateThe 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
userTelegramUserUser who subscribed for payments toward the bot@gramio/types/out/objects.d.ts:2514