Optional
Readonly
dcDC ID of the file, when available
Optional
Readonly
fileFile size in bytes, when available
Readonly
heightThumbnail height
(NaN
for THUMB_OUTLINE and THUMB_STRIP)
Readonly
locationLocation 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.
Readonly
rawReadonly
widthThumbnail width
(NaN
for THUMB_OUTLINE and THUMB_STRIP)
Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_Static
Readonly
THUMB_(non-standard) Emoji-based markup for profile photo
Static
Readonly
THUMB_Static
Readonly
THUMB_(non-standard) Sticker-based markup for profile photo
Static
Readonly
THUMB_Static
Readonly
THUMB_Fullscreen animation for Premium stickers
Static
Readonly
THUMB_Trimmed and downscaled video previews
Static
Readonly
THUMB_Animated profile pictures preview
Get TDLib and Bot API compatible File ID representing this thumbnail.
Note: You can't use this file id to send a thumbnail, only to download it.
If raw is tl.RawPhotoPathSize
(i.e. raw.type === Thumbnail.THUMB_OUTLINE
),
this property will return raw SVG path of the preview.
When downloading path thumbnails, a valid SVG file is returned.
See also: https://core.telegram.org/api/files#vector-thumbnails
MtTypeAssertionError In case raw is not tl.RawPhotoPathSize
Thumbnail type
Get a unique File ID representing this thumbnail.
One size of some thumbnail