A star gift was sent

interface ActionStarGift {
    canUpgrade: boolean;
    converted: boolean;
    convertStars: Long;
    gift: StarGiftUnique | StarGift;
    message: null | TextWithEntities;
    nameHidden: boolean;
    refunded: boolean;
    saved: boolean;
    type: "stars_gift";
    upgraded: boolean;
    upgradeMsgId: null | number;
    upgradeStars: Long;
}

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)

The gift itself

message: null | TextWithEntities

Message attached to the gift

nameHidden: boolean

Whether the sender chose to send the gift anonymously

refunded: boolean

Whether this gift was refunded

saved: boolean

Whether this gift was saved to the recipient's profile

type: "stars_gift"
upgraded: boolean

Whether this gift was upgraded to a unique gift

upgradeMsgId: null | number

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)