Interface SendResoldGift

Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method. Request type for Tdjson#sendResoldGift.

interface SendResoldGift {
    @type: "sendResoldGift";
    gift_name: string;
    is_private?: boolean;
    owner_id: MessageSender;
    price: GiftResalePrice;
    text: FormattedText;
}

Properties

@type: "sendResoldGift"
gift_name: string

Name of the upgraded gift to send.

is_private?: boolean

Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them.

owner_id: MessageSender

Identifier of the user or the channel chat that will receive the gift.

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

Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user.