Skip to content

Document

Type · TDLib 1.8.67 · d1085f9c

Describes a document of any type

Document(
  file_name: string,
  mime_type: string,
  minithumbnail: Minithumbnail,
  thumbnail: Thumbnail,
  document: File
) → Document

file_name

string

Original name of the file; as defined by the sender

mime_type

string

MIME type of the file; as defined by the sender

minithumbnail

Minithumbnail

Document minithumbnail; may be null

thumbnail

Thumbnail

Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null

document

File

File containing the document