Layer 220
MessageExtendedMediaPreview
Paid media preview for not yet purchased paid media, see here for more info.
constructor
messageExtendedMediaPreview#ad628cc8 flags:# w:flags.0?int h:flags.0?int thumb:flags.1?PhotoSize video_duration:flags.2?int = MessageExtendedMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| W | flags.0?int | Width |
| H | flags.0?int | Height |
| Thumb | flags.1?PhotoSize | Extremely low resolution thumbnail. |
| VideoDuration | flags.2?int | Video duration for videos. |
Returns
MessageExtendedMediaGogram Example
// Creating MessageExtendedMediaPreview constructor obj := &tg.MessageExtendedMediaPreview{ // Optional fields: // W: 0, // H: 0, // Thumb: &tg.PhotoSize{}, // VideoDuration: 0, }