ChatPhoto¶
-
class
aiogram.types.chat_photo.ChatPhoto(conf=None, **kwargs)[source]¶ Bases:
aiogram.types.base.TelegramObjectThis object represents a chat photo.
https://core.telegram.org/bots/api#chatphoto
Deserialize object
- Parameters
conf –
kwargs –
-
async
download_small(destination=None, timeout=30, chunk_size=65536, seek=True, make_dirs=True)[source]¶ Download file
- Parameters
destination – filename or instance of
io.IOBase. For e. g.io.BytesIOtimeout – Integer
chunk_size – Integer
seek – Boolean - go to start of file when downloading is finished.
make_dirs – Make dirs if not exist
- Returns
destination
-
async
download_big(destination=None, timeout=30, chunk_size=65536, seek=True, make_dirs=True)[source]¶ Download file
- Parameters
destination – filename or instance of
io.IOBase. For e. g.io.BytesIOtimeout – Integer
chunk_size – Integer
seek – Boolean - go to start of file when downloading is finished.
make_dirs – Make dirs if not exist
- Returns
destination