Documentation - v0.27.1
    Preparing search index...

    Interface ActionPremiumGifted

    Premium subscription was gifted

    interface ActionPremiumGifted {
        amount: number;
        crypto?: { amount: number; currency: string };
        currency: string;
        days: number;
        message?: TextWithEntities;
        type: "premium_gifted";
    }
    Index

    Properties

    amount: number

    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

    crypto?: { amount: number; currency: string }

    If the subscription was bought with crypto, information about it

    Type Declaration

    • amount: number

      Price in the smallest units

    • currency: string

      Crypto currency name

    currency: string

    Currency in which it was paid for. Three-letter ISO 4217 currency code)

    days: number

    Duration of the gifted subscription in days

    Message attached to the gift

    type: "premium_gifted"