One size of some thumbnail

Hierarchy (view full)

Constructors

Properties

dcId?: number

DC ID of the file, when available

fileSize?: number

File size in bytes, when available

height: number

Thumbnail height (NaN for THUMB_OUTLINE and THUMB_STRIP)

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.

width: number

Thumbnail width (NaN for THUMB_OUTLINE and THUMB_STRIP)

THUMB_100x100_BOX: "s" = 's'
THUMB_1280x1280_BOX: "y" = 'y'
THUMB_1280x1280_CROP: "d" = 'd'
THUMB_160x160_CROP: "a" = 'a'
THUMB_2560x2560_BOX: "w" = 'w'
THUMB_320x320_BOX: "m" = 'm'
THUMB_320x320_CROP: "b" = 'b'
THUMB_640x640_CROP: "c" = 'c'
THUMB_800x800_BOX: "x" = 'x'
THUMB_EMOJI_MARKUP: "pfp_em" = 'pfp_em'

(non-standard) Emoji-based markup for profile photo

THUMB_OUTLINE: "j" = 'j'
THUMB_STICKER_MARKUP: "pfp_st" = 'pfp_st'

(non-standard) Sticker-based markup for profile photo

THUMB_STRIP: "i" = 'i'
THUMB_VIDEO_FULLSCREEN: "f" = 'f'

Fullscreen animation for Premium stickers

THUMB_VIDEO_PREVIEW: "v" = 'v'

Trimmed and downscaled video previews

THUMB_VIDEO_PROFILE: "u" = 'u'

Animated profile pictures preview

Accessors