mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed pydantic deprecation warnings
This commit is contained in:
parent
298b4f0e0d
commit
333f376ad1
3 changed files with 5 additions and 3 deletions
|
|
@ -162,7 +162,7 @@ class BaseRequestHandler(ABC):
|
|||
payload.set_content_disposition("form-data", name="method")
|
||||
|
||||
files: Dict[str, InputFile] = {}
|
||||
for key, value in result.dict().items():
|
||||
for key, value in result.model_dump(warnings=False).items():
|
||||
value = bot.session.prepare_value(value, bot=bot, files=files)
|
||||
if not value:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue