Skip to content

InputPhoto

Type · TDLib 1.8.67 · d1085f9c

A photo to be sent

InputPhoto(
  photo: InputFile,
  thumbnail: InputThumbnail,
  video: InputFile,
  added_sticker_file_ids: list of int32,
  width: int32,
  height: int32
) → InputPhoto

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

added_sticker_file_ids

list of int32

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

width

int32

Photo width; may be replaced by the server

height

int32

Photo height; may be replaced by the server