PhotoCachedSize

class pyrogram.raw.types.PhotoCachedSize

Description of an image and its content.

Constructor of PhotoSize.

Details:
  • Layer: 223

  • ID: 21E1AD6

Parameters:
  • type (str) – Thumbnail type

  • w (int 32-bit) – Image width

  • h (int 32-bit) – Image height

  • bytes (bytes) – Binary data, file content

TL Schema

photoCachedSize#21e1ad6
type:string
w:int
h:int
bytes:bytes

= PhotoSize

Parameter Tree

PhotoCachedSize
├── typestring
├── wint
├── hint
└── bytesbytes

Example

PhotoCachedSize(
    type="text",
    w=0,
    h=0,
    bytes=b"data",
)