StaticGramBot API

BotSubscriptionUpdated

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

Поля

User who subscribed for payments toward the bot
Bot-specified invoice payload
stateString
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.

Минимальный JSON

JSON
{
  "user": {
    "id": 1780243423,
    "is_bot": true,
    "first_name": "..."
  },
  "invoice_payload": "...",
  "state": "..."
}

Где используется

Типы

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top