Layer 224
InputMediaUploadedPhoto
Photo
constructor
inputMediaUploadedPhoto#1e287d04 flags:# spoiler:flags.2?true file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Spoiler | flags.2?true | Whether this media should be hidden behind a spoiler warning |
| File | InputFile | The uploaded file |
| Stickers | Vector<InputDocument> | Attached mask stickers |
| TtlSeconds | flags.1?int | Time to live in seconds of self-destructing photo |
Returns
InputMediaGogram Example
// Creating InputMediaUploadedPhoto constructor obj := &tg.InputMediaUploadedPhoto{ File: &tg.InputFile{ID: int64(7654321098765), Parts: 3, Name: "upload.dat"}, // Optional fields: // Spoiler: true, // Stickers: []tg.InputDocument{&tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}}, // TtlSeconds: 42, }