Skip to content

File

Type · TDLib 1.8.67 · d1085f9c

Represents a file

File(
  id: int32,
  size: int53,
  expected_size: int53,
  local: LocalFile,
  remote: RemoteFile
) → File

id

int32

Unique file identifier

size

int53

File size, in bytes; 0 if unknown

expected_size

int53

Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress

local

LocalFile

Information about the local copy of the file

remote

RemoteFile

Information about the remote copy of the file