mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Reworked InputFile sending (#1238)
* Reworked InputFile sending * Added changelog
This commit is contained in:
parent
c7b7714959
commit
a7916c1103
7 changed files with 32 additions and 34 deletions
|
|
@ -170,7 +170,7 @@ class BaseRequestHandler(ABC):
|
|||
payload.set_content_disposition("form-data", name=key)
|
||||
|
||||
for key, value in files.items():
|
||||
payload = writer.append(value)
|
||||
payload = writer.append(value.read(bot))
|
||||
payload.set_content_disposition(
|
||||
"form-data",
|
||||
name=key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue