telegram.photosize module

This module contains an object that represents a Telegram PhotoSize.

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

Bases: telegram.base.TelegramObject

This object represents a Telegram PhotoSize.

file_id

str

width

int

height

int

file_size

int

Parameters:
  • file_id (str) –
  • width (int) –
  • height (int) –
  • **kwargs – Arbitrary keyword arguments.
Keyword Arguments:
 

file_size (Optional[int]) –

static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.PhotoSize

static de_list(data, bot)
Parameters:
Returns:

Return type:

List<telegram.PhotoSize>