View Source ExTDLib.Object.InputMessageDocument (ExTDLib v0.0.4)

A document message (general file).

NameTypeDescription
documentInputFileDocument to be sent.
thumbnailinputThumbnailDocument thumbnail; pass null to skip thumbnail uploading.
disable_content_type_detectionboolPass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.
captionformattedTextDocument caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

More details on telegram's documentation.