Skip to content

StarTransactionTypeBotSubscriptionSale

Type · TDLib 1.8.67 · d1085f9c

The transaction is a sale of a subscription by the bot; relevant for bots only

StarTransactionTypeBotSubscriptionSale(
  user_id: int53,
  subscription_period: int32,
  product_info: ProductInfo,
  invoice_payload: bytes,
  affiliate: AffiliateInfo
) → StarTransactionType

user_id

int53

Identifier of the user who bought the subscription

subscription_period

int32

The number of seconds between consecutive Telegram Star debitings

product_info

ProductInfo

Information about the bought subscription

invoice_payload

bytes

Invoice payload

affiliate

AffiliateInfo

Information about the affiliate which received commission from the transaction; may be null if none