Interface InputMessagePaidMedia

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

interface InputMessagePaidMedia {
    @type: "inputMessagePaidMedia";
    caption: FormattedText;
    paid_media: InputPaidMedia[];
    payload: string;
    show_caption_above_media?: boolean;
    star_count: number;
}

Properties

@type: "inputMessagePaidMedia"
caption: FormattedText

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

paid_media: InputPaidMedia[]

The content of the paid media.

payload: string

Bot-provided data for the paid media; bots only.

show_caption_above_media?: boolean

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

star_count: number

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