mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
🐛 Fix docs
This commit is contained in:
parent
28c0295496
commit
3f476118c5
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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**.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue