Skip to content

InputMessagePaidMedia

Type · TDLib 1.8.67 · d1085f9c

A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed

InputMessagePaidMedia(
  star_count: int53,
  paid_media: list of InputPaidMedia,
  caption: FormattedText,
  show_caption_above_media: Bool,
  payload: string
) → InputMessageContent

star_count

int53

The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max")

list of InputPaidMedia

The content of the paid media

caption

FormattedText

Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters

show_caption_above_media

Bool

True, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported in secret chats

payload

string

Bot-provided data for the paid media; bots only