Interface SellGift

Sells a gift for Telegram Stars. Use receivedGift.sell_star_count or messageGift.sell_star_count to check whether the gift is sellable. A gift can be sold if it is sellable and not more than getOption("gift_sell_period") seconds have passed since the gift was sent. Request type for Tdjson#sellGift.

interface SellGift {
    @type: "sellGift";
    business_connection_id: string;
    received_gift_id: string;
}

Properties

@type: "sellGift"
business_connection_id: string

Unique identifier of the business connection on behalf of which to send the request; for bots only.

received_gift_id: string

Identifier of the gift.