ChatPhoto

class aiogram.types.chat_photo.ChatPhoto(conf: Optional[Dict[str, Any]] = None, **kwargs: Any)[source]

Bases: aiogram.types.base.TelegramObject

This 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.BytesIO

  • timeout – 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.BytesIO

  • timeout – Integer

  • chunk_size – Integer

  • seek – Boolean - go to start of file when downloading is finished.

  • make_dirs – Make dirs if not exist

Returns

destination