telegram.ChatPhoto#
- class telegram.ChatPhoto(*args, **kwargs)[source]#
Bases:
telegram.TelegramObjectThis object represents a chat photo.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
small_file_unique_idandbig_file_unique_idare equal.- Parameters
small_file_id (
str) – Unique file identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.small_file_unique_id (
str) – Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.big_file_id (
str) – Unique file identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.big_file_unique_id (
str) – Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.bot (
telegram.Bot, optional) – The Bot to use for instance methods
- small_file_id[source]#
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
- Type
- small_file_unique_id[source]#
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
- Type
- big_file_id[source]#
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
- Type
- big_file_unique_id[source]#
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
- Type
- async get_big_file(read_timeout=None, write_timeout=None, connect_timeout=None, pool_timeout=None, api_kwargs=None)[source]#
Convenience wrapper over
telegram.Bot.get_filefor getting the big (640x640) chat photoFor the documentation of the arguments, please see
telegram.Bot.get_file().- Returns
- Raises
- async get_small_file(read_timeout=None, write_timeout=None, connect_timeout=None, pool_timeout=None, api_kwargs=None)[source]#
Convenience wrapper over
telegram.Bot.get_filefor getting the small (160x160) chat photoFor the documentation of the arguments, please see
telegram.Bot.get_file().- Returns
- Raises