StaticGramBot API

TransactionPartnerUser

Describes a transaction with a user.

Поля

typeString
Type of the transaction partner, always “user”
Type of the transaction, currently one of “invoice_payment” for payments via invoices, “paid_media_payment” for payments for paid media, “gift_purchase” for gifts sent by the bot, “premium_purchase” for Telegram Premium subscriptions gifted by the bot, “business_account_transfer” for direct transfers from managed business accounts
Information about the user
Information about the affiliate that received a commission via this transaction. Can be available only for “invoice_payment” and “paid_media_payment” transactions.
invoice_payloadStringoptional
Bot-specified invoice payload. Can be available only for “invoice_payment” transactions.
subscription_periodIntegeroptional
The duration of the paid subscription. Can be available only for “invoice_payment” transactions.
giftGiftoptional
The gift sent to the user by the bot; for “gift_purchase” transactions only
Number of months the gifted Telegram Premium subscription will be active for; for “premium_purchase” transactions only

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

JSON
{
  "type": "user",
  "transaction_type": "...",
  "user": {
    "id": 1780243423,
    "is_bot": true,
    "first_name": "..."
  }
}

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

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