Link Search Menu Expand Document

Constructor: inputMediaPaidMedia

Back to constructors index

Paid media, see here » for more info.

Attributes:

NameTypeRequiredDescription
stars_amountlongYesThe price of the media in Telegram Stars.
extended_mediaArray of MessageMedia, Message, Update or InputMediaYesPhotos or videos.
payloadstringOptionalBots 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

Example:

$inputMediaPaidMedia = ['_' => 'inputMediaPaidMedia', 'stars_amount' => long, 'extended_media' => [InputMedia, InputMedia], 'payload' => 'string'];