inputMediaDocument
Signature
Section titled “Signature”inputMediaDocument#a8763ab5 flags:# spoiler:flags.2?true id:InputDocument video_cover:flags.3?InputPhoto video_timestamp:flags.4?int ttl_seconds:flags.0?int query:flags.1?string = InputMedia;Result type
Section titled “Result type”InputMedia
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | |
| spoiler | flags.2?true | flags.2 | — | |
| id | InputDocument | — | — | |
| video_cover | flags.3?InputPhoto | flags.3 | — | |
| video_timestamp | flags.4?int | flags.4 | — | |
| ttl_seconds | flags.0?int | flags.0 | — | |
| query | flags.1?string | flags.1 | — |
| Parameter | Bit | Meaning |
|---|---|---|
| spoiler | 2 | Controlled by flags; present when this bit is set. |
| video_cover | 3 | Controlled by flags; present when this bit is set. |
| video_timestamp | 4 | Controlled by flags; present when this bit is set. |
| ttl_seconds | 0 | Controlled by flags; present when this bit is set. |
| query | 1 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.types import InputMediaDocumentPublic access: miniproto.raw.types.InputMediaDocument.
Result family
Section titled “Result family”Relationships
Section titled “Relationships”- Result family:
InputMedia - Related constructors:
inputMediaContact,inputMediaDice,inputMediaDocumentExternal,inputMediaEmpty,inputMediaGame,inputMediaGeoLive,inputMediaGeoPoint,inputMediaInvoice,inputMediaPaidMedia,inputMediaPhoto,inputMediaPhotoExternal,inputMediaPoll,inputMediaStakeDice,inputMediaStory,inputMediaTodo,inputMediaUploadedDocument,inputMediaUploadedPhoto,inputMediaVenue,inputMediaWebPage,inputMediaWidget,inputMediaWidgetId - Accepted by:
bots.addPreviewMedia,bots.deletePreviewMedia,bots.editPreviewMedia,bots.reorderPreviewMedias,ephemeral.editMessage,ephemeral.sendMessage,messages.editInlineBotMessage,messages.editMessage,messages.saveDraft,messages.sendMedia,messages.uploadImportedMedia,messages.uploadMedia,payments.exportInvoice,stories.editStory,stories.sendStory,draftMessage,inputMediaInvoice,inputMediaPaidMedia,inputMediaPoll,inputPollAnswer,inputSingleMedia