telegramx.js

GiftPremiumSubscriptionParams

interface

Declaration

interface GiftPremiumSubscriptionParams 

Properties

month_countproperty#
month_count: number;

Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12

star_countproperty#
star_count: number;

Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months

text_entities?: MessageEntity[];

A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than "bold", "italic", "underline", "strikethrough", "spoiler", "custom_emoji", and "date_time" are ignored.

text_parse_mode?: string;

Mode for parsing entities in the text. See formatting options for more details. Entities other than "bold", "italic", "underline", "strikethrough", "spoiler", "custom_emoji", and "date_time" are ignored.

textproperty#
text?: string;

Text that will be shown along with the service message about the subscription; 0-128 characters

user_idproperty#
user_id: number;

Unique identifier of the target user who will receive a Telegram Premium subscription