Documentation - v0.27.1
    Preparing search index...

    Interface ActionStarGiftSent

    A star gift was sent

    interface ActionStarGiftSent {
        canUpgrade: boolean;
        converted: boolean;
        convertStars: Long;
        fromAuction: boolean;
        gift: StarGift;
        message: TextWithEntities | null;
        nameHidden: boolean;
        prepaidUpgradeHash?: string;
        refunded: boolean;
        saved: boolean;
        savedId?: Long;
        toId: Peer | null;
        type: "star_gift_sent";
        upgraded: boolean;
        upgradeMsgId: number | null;
        upgradeStars: Long;
    }
    Index

    Properties

    canUpgrade: boolean

    Whether this gift can be upgraded to a unique gift

    converted: boolean

    Whether this gift was converted to stars

    convertStars: Long

    Amount of stars the gift can be converted to by the recipient (0 if the gift cannot be converted)

    fromAuction: boolean

    Whether this gift was purchased on an auction

    gift: StarGift

    The gift itself

    message: TextWithEntities | null

    Message attached to the gift

    nameHidden: boolean

    Whether the sender chose to send the gift anonymously

    prepaidUpgradeHash?: string

    If available, you can pay for this gift's upgrade by passing this hash to prepayStarGiftUpgrade

    refunded: boolean

    Whether this gift was refunded

    saved: boolean

    Whether this gift was saved to the recipient's profile

    savedId?: Long

    ID of the related saved profile gift

    toId: Peer | null

    Recipient of the gift

    type: "star_gift_sent"
    upgraded: boolean

    Whether this gift was upgraded to a unique gift

    upgradeMsgId: number | null

    If the gift was upgraded, ID of the message where this happened

    upgradeStars: Long

    Number of stars to upgrade the gift to a unique gift (may be 0)