telegram.PhotoSize

class telegram.PhotoSize(file_id, width, height, file_size=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents one size of a photo or a file/sticker thumbnail.

file_id

str – Unique identifier for this file.

width

int – Photo width.

height

int – Photo height.

file_size

int – Optional. File size.

Parameters:
  • file_id (str) – Unique identifier for this file.
  • width (int) – Photo width.
  • height (int) – Photo height.
  • file_size (int, optional) – File size.
  • **kwargs (dict) – Arbitrary keyword arguments.