Mixins¶
Downloadable¶
-
class
aiogram.types.mixins.Downloadable[source]¶ Bases:
objectMixin for files
-
async
download(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