mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Versions in docs
This commit is contained in:
parent
c9e490bcee
commit
90b4d2eae9
3 changed files with 10 additions and 10 deletions
|
|
@ -49,9 +49,9 @@ text_file = BufferedInputFile(b"Hello, world!", filename="file.txt")
|
|||
### BufferedInputFile(...)
|
||||
|Argument|Type|Description|
|
||||
|---|---|---|
|
||||
| buffer | `#!python3 bytes` | File path |
|
||||
| filename | `#!python3 str` | Custom filename to be presented to Telegram (Required) |
|
||||
| chunk_size | `#!python3 int` | File chunks size (Default: `64 kb`) |
|
||||
| `buffer` | `#!python3 bytes` | File path |
|
||||
| `filename` | `#!python3 str` | Custom filename to be presented to Telegram (Required) |
|
||||
| `chunk_size` | `#!python3 int` | File chunks size (Default: `64 kb`) |
|
||||
|
||||
Also you can read buffer from file:
|
||||
|
||||
|
|
@ -62,6 +62,6 @@ file = BufferedInputFile.from_file("file.txt")
|
|||
### BufferedInputFile.from_file(...)
|
||||
|Argument|Type|Description|
|
||||
|---|---|---|
|
||||
| path | `#!python3 Union[str, Path]` | File path |
|
||||
| filename | `#!python3 Optional[str]` | Custom filename to be presented to Telegram |
|
||||
| chunk_size | `#!python3 int` | File chunks size (Default: `64 kb`) |
|
||||
| `path` | `#!python3 Union[str, Path]` | File path |
|
||||
| `filename` | `#!python3 Optional[str]` | Custom filename to be presented to Telegram |
|
||||
| `chunk_size` | `#!python3 int` | File chunks size (Default: `64 kb`) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue