Photo
- class pyrogram.raw.base.Photo
Object describes a photo.
- Constructors:
This base type has 2 constructors available.
Constructor of
Photo.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_stickers →
true (optional)├── id →
long├── access_hash →
long├── file_reference →
bytes├── date →
int├── sizes →
Vector < PhotoSize >│ ├──
PhotoSizeEmpty│ │ └── type →
string│ ├──
PhotoSize│ │ ├── type →
string│ │ ├── w →
int│ │ ├── h →
int│ │ └── size →
int│ ├──
PhotoCachedSize│ │ ├── type →
string│ │ ├── w →
int│ │ ├── h →
int│ │ └── bytes →
bytes│ ├──
PhotoStrippedSize│ │ ├── type →
string│ │ └── bytes →
bytes│ ├──
PhotoSizeProgressive│ │ ├── type →
string│ │ ├── w →
int│ │ ├── h →
int│ │ └── sizes →
Vector < int >│ └──
PhotoPathSize│ ├── type →
string│ └── bytes →
bytes├── video_sizes →
Vector < VideoSize > (optional)│ ├──
VideoSize│ │ ├── type →
string│ │ ├── w →
int│ │ ├── h →
int│ │ ├── size →
int│ │ └── video_start_ts →
double (optional)│ ├──
VideoSizeEmojiMarkup│ │ ├── emoji_id →
long│ │ └── background_colors →
Vector < int >│ └──
VideoSizeStickerMarkup│ ├── stickerset →
InputStickerSet│ │ ├──
InputStickerSetEmpty│ │ ├──
InputStickerSetID│ │ │ ├── id →
long│ │ │ └── access_hash →
long│ │ ├──
InputStickerSetShortName│ │ │ └── short_name →
string│ │ ├──
InputStickerSetAnimatedEmoji│ │ ├──
InputStickerSetDice│ │ │ └── emoticon →
string│ │ ├──
InputStickerSetPremiumGifts│ │ └──
InputStickerSetTonGifts│ ├── sticker_id →
long│ └── background_colors →
Vector < int >└── dc_id →
intExample
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,
)