inputMediaPaidMedia #

Paid media, see here » for more info.

Layer 223

inputMediaPaidMedia#c4103386 flags:# stars_amount:long extended_media:Vector<InputMedia> payload:flags.0?string = InputMedia;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
stars_amountlongThe price of the media in Telegram Stars.
extended_mediaVector<InputMedia>Photos or videos.
payloadflags.0?stringBots only, specifies a custom payload that will then be passed in updateBotPurchasedPaidMedia when a payment is made (this field will not be visible to the user)

Type #

InputMedia

Telegram Stars #

Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.

updateBotPurchasedPaidMedia #

Bots only: a user has purchased a paid media.

Content creators can accept Stars by publishing paid photos or videos on their channels. Subscribers will be allowed to view such posts only after paying the author to unlock them.