Interface GiftPremiumWithStars

Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only. Request type for Tdjson#giftPremiumWithStars.

interface GiftPremiumWithStars {
    @type: "giftPremiumWithStars";
    month_count: number;
    star_count: number;
    text: FormattedText;
    user_id: number;
}

Properties

@type: "giftPremiumWithStars"
month_count: number

Number of months the Telegram Premium subscription will be active for the user.

star_count: number

The number of Telegram Stars to pay for subscription.

Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.

user_id: number

Identifier of the user which will receive Telegram Premium.