View Source ExTDLib.Object.InputMessagePhoto (ExTDLib v0.0.4)

A photo message.

NameTypeDescription
photoInputFilePhoto 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.
thumbnailinputThumbnailPhoto 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_idsnumberFile identifiers of the stickers added to the photo, if applicable.
widthnumberPhoto width.
heightnumberPhoto height.
captionformattedTextPhoto caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
self_destruct_typeMessageSelfDestructTypePhoto self-destruct type; pass null if none; private chats only.
has_spoilerboolTrue, if the photo preview must be covered by a spoiler animation; not supported in secret chats.

More details on telegram's documentation.