Photo

class pyrogram.raw.base.Photo

Object describes a photo.

Constructors:

This base type has 2 constructors available.

Photo

Constructor of Photo.

PhotoEmpty

Empty constructor, non-existent photo

TL Schema

photo#fb197a65
flags:#
has_stickers:flags.0?true
id:long
access_hash:long
file_reference:bytes
date:int
sizes:Vector<PhotoSize>
video_sizes:flags.1?Vector<VideoSize>
dc_id:int

= Photo

Parameter Tree

Photo
├── has_stickerstrue (optional)
├── idlong
├── access_hashlong
├── file_referencebytes
├── dateint
├── sizesVector < PhotoSize >
│ ├── PhotoSizeEmpty
│ │ └── typestring
│ ├── PhotoSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── sizeint
│ ├── PhotoCachedSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── bytesbytes
│ ├── PhotoStrippedSize
│ │ ├── typestring
│ │ └── bytesbytes
│ ├── PhotoSizeProgressive
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── sizesVector < int >
│ └── PhotoPathSize
│ ├── typestring
│ └── bytesbytes
├── video_sizesVector < VideoSize > (optional)
│ ├── VideoSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ ├── sizeint
│ │ └── video_start_tsdouble (optional)
│ ├── VideoSizeEmojiMarkup
│ │ ├── emoji_idlong
│ │ └── background_colorsVector < int >
│ ├── stickersetInputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ │ ├── idlong
│ │ │ └── access_hashlong
│ │ ├── InputStickerSetShortName
│ │ │ └── short_namestring
│ │ ├── InputStickerSetDice
│ │ │ └── emoticonstring
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ ├── sticker_idlong
│ └── background_colorsVector < int >
└── dc_idint

Example

Photo(
    has_stickers=None,
    id=0,
    access_hash=0,
    file_reference=b"data",
    date=0,
    sizes=[
            PhotoSizeEmpty(type="text")
        ],
    video_sizes=[
            VideoSize(
                type="text",
                w=0,
                h=0,
                size=0,
                video_start_ts=None
            )
        ],
    dc_id=0,
)