A size of a chat photo

Hierarchy (View Summary)

Constructors

Properties

big: boolean
dcId?: number

DC ID of the file, when available

fileSize?: number

File size in bytes, when available

location:
    | Uint8Array
    | TypeInputFileLocation
    | TypeInputWebFileLocation
    | () => Uint8Array | TypeInputFileLocation | TypeInputWebFileLocation

Location of the file.

Either a TL object declaring remote file location, a Buffer containing actual file content (for stripped thumbnails and vector previews), or a function that will return either of those.

When a function is passed, it will be lazily resolved the first time downloading the file.

Accessors

  • get fileId(): string
  • TDLib and Bot API compatible File ID representing this size

    Returns string

  • get uniqueFileId(): string
  • TDLib and Bot API compatible unique File ID representing this size

    Returns string