Documentation - v0.27.0
    Preparing search index...

    A photo

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    dcId?: number

    DC ID of the file, when available

    fileSize?: number

    File size in bytes, when available

    height: number

    Biggest available photo height

    location:
        | Uint8Array<ArrayBufferLike>
        | TypeInputFileLocation
        | TypeInputWebFileLocation
        | (
            () => Uint8Array<ArrayBufferLike> | 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.

    type: "photo" = ...
    width: number

    Biggest available photo width

    Accessors

    Methods