messageMediaDocument
messageMediaDocument
Section titled “messageMediaDocument”No description provided by the pinned schema.
Signature
Section titled “Signature”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;Result type
Section titled “Result type”MessageMedia
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | No description provided by the pinned schema. |
| nopremium | flags.3?true | flags.3 | — | No description provided by the pinned schema. |
| spoiler | flags.4?true | flags.4 | — | No description provided by the pinned schema. |
| video | flags.6?true | flags.6 | — | No description provided by the pinned schema. |
| round | flags.7?true | flags.7 | — | No description provided by the pinned schema. |
| voice | flags.8?true | flags.8 | — | No description provided by the pinned schema. |
| document | flags.0?Document | flags.0 | — | No description provided by the pinned schema. |
| alt_documents | flags.5?Vector | flags.5 | — | No description provided by the pinned schema. |
| video_cover | flags.9?Photo | flags.9 | — | No description provided by the pinned schema. |
| video_timestamp | flags.10?int | flags.10 | — | No description provided by the pinned schema. |
| ttl_seconds | flags.2?int | flags.2 | — | No description provided by the pinned schema. |
| Parameter | Bit | Meaning |
|---|---|---|
| nopremium | 3 | Controlled by flags; present when this bit is set. |
| spoiler | 4 | Controlled by flags; present when this bit is set. |
| video | 6 | Controlled by flags; present when this bit is set. |
| round | 7 | Controlled by flags; present when this bit is set. |
| voice | 8 | Controlled by flags; present when this bit is set. |
| document | 0 | Controlled by flags; present when this bit is set. |
| alt_documents | 5 | Controlled by flags; present when this bit is set. |
| video_cover | 9 | Controlled by flags; present when this bit is set. |
| video_timestamp | 10 | Controlled by flags; present when this bit is set. |
| ttl_seconds | 2 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.types import MessageMediaDocumentPublic access: miniproto.raw.types.MessageMediaDocument.
Safe usage shape
Section titled “Safe usage shape”from miniproto.raw.types import MessageMediaDocument
# Naming the raw constructor class is local only; it performs no I/O or network request.constructor_type = MessageMediaDocumentResult family
Section titled “Result family”Relationships
Section titled “Relationships”- Result family:
MessageMedia - Related constructors:
messageMediaContact,messageMediaDice,messageMediaEmpty,messageMediaGame,messageMediaGeo,messageMediaGeoLive,messageMediaGiveaway,messageMediaGiveawayResults,messageMediaInvoice,messageMediaPaidMedia,messageMediaPhoto,messageMediaPoll,messageMediaStory,messageMediaToDo,messageMediaUnsupported,messageMediaVenue,messageMediaVideoStream,messageMediaWebPage - Accepted by:
botPreviewMedia,ephemeralMessage,message,messageExtendedMedia,messageMediaPoll,messageReplyHeader,messages.webPagePreview,pollAnswer,pollResults,sponsoredMessage,starsTransaction,storyItem,updateServiceNotification,updateShortSentMessage - Returned by:
messages.uploadImportedMedia,messages.uploadMedia
Provenance
Section titled “Provenance”- layer: 228
- structural source:
tdlib - canonical schema: https://raw.githubusercontent.com/tdlib/td/refs/heads/master/td/generate/scheme/telegram_api.tl
- prose merge precedence: TDLib → Telegram Desktop → Core JSON
- source note: Canonical structure is the pinned TDLib telegram_api.tl; Layer 228 comes only from the matching Telegram Desktop end-of-file marker; core.telegram.org inputs enrich documentation and RPC error metadata without overriding structure.
Source-diff notes
Section titled “Source-diff notes”- tdlib_vs_core: changed_count=68; core_only_count=1; overlap_count=2302; tdlib_only_count=158
- tdlib_vs_tdesktop: changed_count=0; overlap_count=2448; tdesktop_only=null; tdlib_only=accessPointRule, ephemeral.editMessage, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret, updateEphemeralBotCallbackQuery