Class TdApi.InputPhoto

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputPhoto
Enclosing class:
TdApi

public static class TdApi.InputPhoto extends TdApi.Object
A photo to be sent.
  • Field Details

    • photo

      public TdApi.InputFile photo
      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

      public TdApi.InputThumbnail thumbnail
      Photo thumbnail; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.
    • video

      public TdApi.InputFile video
      Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo.
    • addedStickerFileIds

      public int[] addedStickerFileIds
      File identifiers of the stickers added to the photo, if applicable.
    • width

      public int width
      Photo width; may be replaced by the server.
    • height

      public int height
      Photo height; may be replaced by the server.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InputPhoto

      public InputPhoto()
      A photo to be sent.
    • InputPhoto

      public InputPhoto(TdApi.InputFile photo, TdApi.InputThumbnail thumbnail, TdApi.InputFile video, int[] addedStickerFileIds, int width, int height)
      A photo to be sent.
      Parameters:
      photo - 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 - Photo thumbnail; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.
      video - Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo.
      addedStickerFileIds - File identifiers of the stickers added to the photo, if applicable.
      width - Photo width; may be replaced by the server.
      height - Photo height; may be replaced by the server.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR