Interface MessageGiftedPremium

Telegram Premium was gifted to a user. Subtype of MessageContent.

interface MessageGiftedPremium {
    @type: "messageGiftedPremium";
    amount: number;
    cryptocurrency: string;
    cryptocurrency_amount: string;
    currency: string;
    gifter_user_id: number;
    month_count: number;
    receiver_user_id: number;
    sticker: Sticker;
    text: FormattedText;
}

Properties

@type: "messageGiftedPremium"
amount: number

The paid amount, in the smallest units of the currency.

cryptocurrency: string

Cryptocurrency used to pay for the gift; may be empty if none.

cryptocurrency_amount: string

The paid amount, in the smallest units of the cryptocurrency; 0 if none.

currency: string

Currency for the paid amount.

gifter_user_id: number

The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous or is outgoing.

month_count: number

Number of months the Telegram Premium subscription will be active.

receiver_user_id: number

The identifier of a user that received Telegram Premium; 0 if the gift is incoming.

sticker: Sticker

A sticker to be shown in the message; may be null if unknown.

Message added to the gifted Telegram Premium by the sender.