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

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
StarsAmount long The price of the media in Telegram Stars.
ExtendedMedia Vector<InputMedia> Photos or videos.
Payload flags.0?string Bots only, specifies a custom payload that will then be passed in update Bot Purchased Paid Media when a payment is made (this field will not be visible to the user)

Returns

InputMedia

Gogram Example

// Creating InputMediaPaidMedia constructor
obj := &tg.InputMediaPaidMedia{
    StarsAmount: int64(0),
    ExtendedMedia: []tg.InputMedia{&tg.InputMediaPhoto{ID: &tg.InputPhoto{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}}},

    // Optional fields:
    // Payload: "...",
}