Layer 220
InputMediaPaidMedia
Paid media, see here for more info.
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
InputMediaGogram 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: "...", }