Skip to content

StorePaymentPurposePremiumGiftCodes

Type · TDLib 1.8.67 · d1085f9c

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

StorePaymentPurposePremiumGiftCodes(
  boosted_chat_id: int53,
  currency: string,
  amount: int53,
  user_ids: list of int53,
  text: FormattedText
) → StorePaymentPurpose

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

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