telegram.photosize module¶
This module contains an object that represents a Telegram PhotoSize.
-
class
telegram.photosize.PhotoSize(file_id, width, height, file_size=0, **kwargs)¶ Bases:
telegram.base.TelegramObjectThis 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: - data (dict) –
- bot (telegram.Bot) –
Returns: Return type:
-
static
de_list(data, bot)¶ Parameters: - data (list) –
- bot (telegram.Bot) –
Returns: Return type: List<telegram.PhotoSize>
-