- API ›
- Constructors ›
- InputMediaPhoto
InputMediaPhoto
---types--- inputMediaPhoto#e3af4434 spoiler:flags.1?true live_photo:flags.2?true id:InputPhoto ttl_seconds:flags.0?int video:flags.2?InputDocument = InputMedia
Belongs to
| InputMedia |
In Rust this constructor is a variant of the enums::InputMedia enum.
Match on it with: if let enums::InputMedia::InputMediaPhoto(v) = result { ... }
Parameters
| spoiler | true | optional |
| live_photo | true | optional |
| id | InputPhoto | required |
| ttl_seconds | int | optional |
| video | InputDocument | optional |
Used by
| AddPreviewMedia |
| EditInlineBotMessage |
| EditMessage |
| EditPreviewMedia |
| EditStory |
| ExportInvoice |
| SaveDraft |
| SendMedia |
| SendStory |
| UploadImportedMedia |
| UploadMedia |