teleproto - v1.234.0
    Preparing search index...

    Interface PaymentsSendStarGiftOfferParams

    interface PaymentsSendStarGiftOfferParams {
        allowPaidStars?: BigInteger;
        duration: number;
        peer: TypeInputPeerIn;
        price: TypeStarsAmountIn;
        randomId?: BigInteger;
        slug: string;
    }
    Index
    allowPaidStars?: BigInteger

    If the destination peer has paid messages » enabled, specifies the amount of Telegram Stars the sending user has agreed to pay in order to send the offer (in addition to the amount for the offer itself, contained in price ).

    duration: number

    Duration of the offer, in seconds: must be one of 21600 , 43200 , 86400 , 129600 , 172800 , or 259200 ; can also be 120 in test mode.

    Owner of the collectible gift: equal to starGiftUnique . owner_id .

    Offer price, in stars or TON.

    randomId?: BigInteger

    Random 64-bit identifier used to avoid sending the same offer twice in case of network issues. See here » for more info on random ID deduplication and updateMessageID mapping.

    slug: string

    Identifier of the collectible gift: equal to starGiftUnique . slug .