Skip to content

TelegramPaymentPurposePremiumGiftCodes

Type · TDLib 1.8.67 · d1085f9c

The user boosting a chat by creating Telegram Premium gift codes for other users

TelegramPaymentPurposePremiumGiftCodes(
  boosted_chat_id: int53,
  currency: string,
  amount: int53,
  user_ids: list of int53,
  month_count: int32,
  text: FormattedText
) → TelegramPaymentPurpose

boosted_chat_id

int53

Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user

currency

string

ISO 4217 currency code of the payment currency

amount

int53

Paid amount, in the smallest units of the currency

user_ids

list of int53

Identifiers of the users who can activate the gift codes

month_count

int32

Number of months the Telegram Premium subscription will be active for the users

text

FormattedText

Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed