inputMediaPhoto
Signature
Section titled “Signature”inputMediaPhoto#e3af4434 flags:# spoiler:flags.1?true live_photo:flags.2?true id:InputPhoto ttl_seconds:flags.0?int video:flags.2?InputDocument = InputMedia;Result type
Section titled “Result type”InputMedia
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | |
| spoiler | flags.1?true | flags.1 | — | |
| live_photo | flags.2?true | flags.2 | — | |
| id | InputPhoto | — | — | |
| ttl_seconds | flags.0?int | flags.0 | — | |
| video | flags.2?InputDocument | flags.2 | — |
| Parameter | Bit | Meaning |
|---|---|---|
| spoiler | 1 | Controlled by flags; present when this bit is set. |
| live_photo | 2 | Controlled by flags; present when this bit is set. |
| ttl_seconds | 0 | Controlled by flags; present when this bit is set. |
| video | 2 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.types import InputMediaPhotoPublic access: miniproto.raw.types.InputMediaPhoto.
Result family
Section titled “Result family”Relationships
Section titled “Relationships”- Result family:
InputMedia - Related constructors:
inputMediaContact,inputMediaDice,inputMediaDocument,inputMediaDocumentExternal,inputMediaEmpty,inputMediaGame,inputMediaGeoLive,inputMediaGeoPoint,inputMediaInvoice,inputMediaPaidMedia,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