Optional ReadonlydcDC ID of the file, when available
Optional ReadonlyfileFile size in bytes, when available
ReadonlyheightThumbnail height
(NaN for THUMB_OUTLINE and THUMB_STRIP)
ReadonlylocationLocation 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.
ReadonlyrawReadonlywidthThumbnail width
(NaN for THUMB_OUTLINE and THUMB_STRIP)
Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_Static ReadonlyTHUMB_(non-standard) Emoji-based markup for profile photo
Static ReadonlyTHUMB_Static ReadonlyTHUMB_(non-standard) Sticker-based markup for profile photo
Static ReadonlyTHUMB_Static ReadonlyTHUMB_Fullscreen animation for Premium stickers
Static ReadonlyTHUMB_Trimmed and downscaled video previews
Static ReadonlyTHUMB_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