diff --git a/aiogram/api/client/base.py b/aiogram/api/client/base.py index 70ed56c0..9990b191 100644 --- a/aiogram/api/client/base.py +++ b/aiogram/api/client/base.py @@ -112,7 +112,7 @@ class BaseBot(ContextInstanceMixin, DataMixin): :type destination: Optional[Union[BinaryIO, pathlib.Path, str]] :param timeout: Total timeout in seconds, defaults to 30 :type timeout: int - :param chunk_size: Chunk size, defaults to 65536 + :param chunk_size: File chunks size, defaults to 64 kb :type chunk_size: int :param seek: Go to start of file when downloading is finished. Used only for :class:`typing.BinaryIO` type destination, defaults to True :type seek: bool diff --git a/docs/api/downloading_files.md b/docs/api/downloading_files.md index b544e202..e243fafc 100644 --- a/docs/api/downloading_files.md +++ b/docs/api/downloading_files.md @@ -28,9 +28,8 @@ value of destination and handle result of this method. |---|---|---| | file_path | `#!python3 str` | File path on Telegram server | | destination | `#!python3 Optional[Union[BinaryIO, pathlib.Path, str]]` | Filename, file path or instance of `#!python3 io.IOBase`. For e.g. `#!python3 io.BytesIO` (Default: `#!python3 None`) | -| chunk_size | `#!python3 int` | File chunks size (Default: `64 kb`) | | timeout | `#!python3 int` | Total timeout in seconds (Default: `30`) | -| chunk_size | `#!python3 int` | Chunk size (Default: `65536`) | +| chunk_size | `#!python3 int` | File chunks size (Default: `64 kb`) | | seek | `#!python3 bool` | Go to start of file when downloading is finished. Used only for destination with `#!python3 typing.BinaryIO` type (Default: `#!python3 True`) | There are two options where you can download the file: to **disk** or to **binary I/O object**.