Class TdApi.InputMessageDocument

    • Field Detail

      • thumbnail

        public TdApi.InputThumbnail thumbnail
        Document thumbnail; pass null to skip thumbnail uploading.
      • disableContentTypeDetection

        public boolean disableContentTypeDetection
        If true, automatic file type detection will be disabled and the document will be always sent as file. Always true for files sent to secret chats.
      • caption

        public TdApi.FormattedText caption
        Document caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
      • CONSTRUCTOR

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

      • InputMessageDocument

        public InputMessageDocument()
        A document message (general file).
      • InputMessageDocument

        public InputMessageDocument​(TdApi.InputFile document,
                                    TdApi.InputThumbnail thumbnail,
                                    boolean disableContentTypeDetection,
                                    TdApi.FormattedText caption)
        A document message (general file).
        Parameters:
        document - Document to be sent.
        thumbnail - Document thumbnail; pass null to skip thumbnail uploading.
        disableContentTypeDetection - If true, automatic file type detection will be disabled and the document will be always sent as file. Always true for files sent to secret chats.
        caption - Document caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.