Optional
media: RawMessageMediaPhotoOptional
Readonly
dcDC ID of the file, when available
Optional
Readonly
fileFile size in bytes, when available
Readonly
heightBiggest available photo height
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.
Optional
Readonly
mediaReadonly
rawReadonly
typeReadonly
widthBiggest available photo width
Date this photo was sent
Get TDLib and Bot API compatible File ID representing this photo's best thumbnail.
Whether this photo is hidden with a spoiler
Input media generated from this object, to be used in InputMediaLike and TelegramClient.sendMedia
Input photo generated from this object.
Whether this photo is an animated profile picture
Whether this photo is an animated profile picture, built from an emoji/sticker markup
For self-destructing photos, TTL in seconds
Get TDLib and Bot API compatible Unique File ID representing this photo's best thumbnail.
Get a photo thumbnail by its type.
Thumbnail types are described in the Telegram docs, and are also available as static members of Thumbnail for convenience.
Thumbnail type
A photo