telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface GiftPremiumSubscriptionOptions

    month_count must be one of 3, 6, 12 and star_count must match the price Telegram charges for that duration (1000, 1500 and 2500 Stars respectively).

    interface GiftPremiumSubscriptionOptions {
        month_count: number;
        star_count: number;
        text?: string;
        text_entities?: MessageEntity[];
        text_parse_mode?: string;
        user_id: number;
    }
    Index
    month_count: number

    Number of months the subscription will be active; one of 3, 6, 12.

    star_count: number

    Number of Telegram Stars to pay for the subscription.

    text?: string

    Text shown along with the service message about the subscription; 0-128 characters.

    text_entities?: MessageEntity[]

    A list of special entities that appear in the text; can be specified instead of text_parse_mode.

    text_parse_mode?: string

    Mode for parsing entities in the text.

    user_id: number

    Unique identifier of the target user.