Interface StarTransactionTypeBotPaidMediaSale

The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only. Subtype of StarTransactionType.

interface StarTransactionTypeBotPaidMediaSale {
    @type: "starTransactionTypeBotPaidMediaSale";
    affiliate: AffiliateInfo;
    media: PaidMedia[];
    payload: string;
    user_id: number;
}

Properties

@type: "starTransactionTypeBotPaidMediaSale"
affiliate: AffiliateInfo

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

media: PaidMedia[]

The bought media.

payload: string

Bot-provided payload.

user_id: number

Identifier of the user that bought the media.