updateBotPurchasedPaidMedia #

Bots only: a user has purchased a paid media.

Layer 223

updateBotPurchasedPaidMedia#283bd312 user_id:long payload:string qts:int = Update;

Parameters #

NameTypeDescription
user_idlongThe user that bought the media
payloadstringPayload passed by the bot in inputMediaPaidMedia.payload
qtsintNew qts value, see updates » for more info.

Type #

Update

inputMediaPaidMedia #

Paid media, see here » for more info.

Working with Updates #

How to subscribe to updates and handle them properly.

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.