Interface SendGiftPurchaseOffer

Sends an offer to purchase an upgraded gift. Request type for Tdjson#sendGiftPurchaseOffer.

interface SendGiftPurchaseOffer {
    @type: "sendGiftPurchaseOffer";
    duration: number;
    gift_name: string;
    owner_id: MessageSender;
    paid_message_star_count: number;
    price: GiftResalePrice;
}

Properties

@type: "sendGiftPurchaseOffer"
duration: number

Duration of the offer, in seconds; must be one of 21600, 43200, 86400, 129600, 172800, or 259200. Can also be 120 if Telegram test environment is used.

gift_name: string

Name of the upgraded gift.

owner_id: MessageSender

Identifier of the user or the channel chat that currently owns the gift and will receive the offer.

paid_message_star_count: number

The number of Telegram Stars the user agreed to pay additionally for sending of the offer message to the current gift owner; pass userFullInfo.outgoing_paid_message_star_count for users and 0 otherwise.

The price that the user agreed to pay for the gift.