Interface ActionPaymentReceived

A payment was received from a user (bot)

interface ActionPaymentReceived {
    amount: Long;
    charge?: RawPaymentCharge;
    currency: string;
    info?: RawPaymentRequestedInfo;
    payload: Uint8Array;
    shippingOptionId?: string;
    type: "payment_received";
}

Properties

amount: Long

Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, amount = 145

Payment provider ID

currency: string

Three-letter ISO 4217 currency code

Order information provided by the user

payload: Uint8Array

Bot specified invoice payload

shippingOptionId?: string

ID of the shipping option chosen by the user

type: "payment_received"