Interface InputPhoto

A photo to be sent.

interface InputPhoto {
    @type: "inputPhoto";
    added_sticker_file_ids: number[];
    height: number;
    photo: InputFile;
    thumbnail: InputThumbnail;
    video: InputFile;
    width: number;
}

Properties

@type: "inputPhoto"
added_sticker_file_ids: number[]

File identifiers of the stickers added to the photo, if applicable.

height: number

Photo height; may be replaced by the server.

photo: InputFile

Photo to be sent. 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; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.

video: InputFile

Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo.

width: number

Photo width; may be replaced by the server.