Interface Gift

Describes a gift that can be sent to another user.

interface Gift {
    @type: "gift";
    default_sell_star_count: number;
    first_send_date: number;
    id: string;
    is_for_birthday?: boolean;
    last_send_date: number;
    remaining_count: number;
    star_count: number;
    sticker: Sticker;
    total_count: number;
}

Properties

@type: "gift"
default_sell_star_count: number

Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed.

first_send_date: number

Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only.

id: string

Unique identifier of the gift.

is_for_birthday?: boolean

True, if the gift is a birthday gift.

last_send_date: number

Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only.

remaining_count: number

Number of remaining times the gift can be purchased by all users; 0 if not limited or the gift was sold out.

star_count: number

Number of Telegram Stars that must be paid for the gift.

sticker: Sticker

The sticker representing the gift.

total_count: number

Number of total times the gift can be purchased by all users; 0 if not limited.