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

Parameters

Name Type Description
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(1234567890),
    ExtendedMedia: []tg.InputMedia{&tg.InputMediaPhoto{ID: &tg.InputPhoto{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01}}}},

    // Optional fields:
    // Payload: "Hello, World!",
}