telegram api constructor · layer 229 · #52d8ccd9
messageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
definition
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 |
|---|---|---|
flags | # | Flags, see TL conditional fields |
nopremium | true | Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played. |
spoiler | true | Whether this media should be hidden behind a spoiler warning |
video | true | Whether this is a video. |
round | true | Whether this is a round video. |
voice | true | Whether this is a voice message. |
document | Document | Attached document |
alt_documents | Vector<Document> | Videos only, contains alternative qualities of the video. |
video_cover | Photo | Custom video cover. |
video_timestamp | int | Start playing the video at the specified timestamp (seconds). |
ttl_seconds | int | Time to live of self-destructing document |
type
MessageMedia · 18 other constructors
history
present in layers 10–229 · constructor id changed 6×
| id | layers |
|---|---|
| #2fda2204 | 10–23 |
| #f3e02ea8 | 46–68 |
| #7c4414d3 | 70–75 |
| #9cb070d7 | 76–159 |
| #4cf4d72d | 160–187 |
| #dd570bd5 | 188–197 |
| #52d8ccd9 | 198–229 |