View Source ExTDLib.Object.InputMessagePhoto (ExTDLib v0.0.4)
A photo message.
| Name | Type | Description |
|---|---|---|
| photo | InputFile | Photo to send. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. |
| thumbnail | inputThumbnail | Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats. |
| added_sticker_file_ids | number | File identifiers of the stickers added to the photo, if applicable. |
| width | number | Photo width. |
| height | number | Photo height. |
| caption | formattedText | Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. |
| self_destruct_type | MessageSelfDestructType | Photo self-destruct type; pass null if none; private chats only. |
| has_spoiler | bool | True, if the photo preview must be covered by a spoiler animation; not supported in secret chats. |
More details on telegram's documentation.