Layer 227
MessageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
constructor
messageMediaDocument#52d8ccd9 flags:# nopremium:flags.3?true spoiler:flags.4?true video:flags.6?true round:flags.7?true voice:flags.8?true document:flags.0?Document alt_documents:flags.5?Vector<Document> video_cover:flags.9?Photo video_timestamp:flags.10?int ttl_seconds:flags.2?int = MessageMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Nopremium | flags .3? true | Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played. |
| Spoiler | flags .4? true | Whether this media should be hidden behind a spoiler warning |
| Video | flags .6? true | Whether this is a video. |
| Round | flags .7? true | Whether this is a round video. |
| Voice | flags .8? true | Whether this is a voice message. |
| Document | flags .0? Document | Attached document |
| AltDocuments | flags .5? Vector < Document > | Videos only, contains alternative qualities of the video. |
| VideoCover | flags .9? Photo | Custom video cover. |
| VideoTimestamp | flags .10? int | Start playing the video at the specified timestamp (seconds). |
| TtlSeconds | flags .2? int | Time to live of self-destructing document, can be 0 to disable self-destruction, 0 x 7 FFFFFFF to self-destruct the document immediately after it's played; otherwise self-destructs ttl_seconds after it's played. |
Returns
MessageMediaGogram Example
// Creating MessageMediaDocument constructor obj := &tg.MessageMediaDocument{ Nopremium: nil, Spoiler: nil, Video: nil, Round: nil, Voice: nil, Document: nil, // ... more required fields }