Class TdApi.InputMessagePhoto

    • Field Detail

      • thumbnail

        public TdApi.InputThumbnail thumbnail
        Photo thumbnail to be sent, this is sent to the other party in secret chats only.
      • addedStickerFileIds

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

        public int width
        Photo width.
      • height

        public int height
        Photo height.
      • ttl

        public int ttl
        Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InputMessagePhoto

        public InputMessagePhoto()
        Default constructor.
      • InputMessagePhoto

        public InputMessagePhoto​(TdApi.InputFile photo,
                                 TdApi.InputThumbnail thumbnail,
                                 int[] addedStickerFileIds,
                                 int width,
                                 int height,
                                 TdApi.FormattedText caption,
                                 int ttl)
        Constructor for initialization of all fields.
        Parameters:
        photo - Photo to send.
        thumbnail - Photo thumbnail to be sent, this is sent to the other party in secret chats only.
        addedStickerFileIds - File identifiers of the stickers added to the photo, if applicable.
        width - Photo width.
        height - Photo height.
        caption - Photo caption; 0-200 characters.
        ttl - Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats.