Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed deserealization on get_sticker_set method #1446

Open
2 tasks done
KolosDan opened this issue Apr 2, 2024 · 0 comments
Open
2 tasks done

Failed deserealization on get_sticker_set method #1446

KolosDan opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something is wrong with the framework

Comments

@KolosDan
Copy link

KolosDan commented Apr 2, 2024

Checklist

  • I am sure the error is coming from aiogram code
  • I have searched in the issue tracker for similar bug reports, including closed ones

Operating system

Docker ubuntu 22.04

Python version

3.11

aiogram version

3.4.1

Expected behavior

Get StickerSet object on get_sticker_set method

Current behavior

Method raises a pydantic validation error due to mismatch of models with Telegram API patch 31.03.2024

Failed to deserialize object
Caused from error: pydantic_core._pydantic_core.ValidationError: 2 validation errors for Response[StickerSet]
result.is_animated
Field required [type=missing, input_value={'name': 's2_z8ff4r_by_me...', 'file_size': 23036}]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
result.is_video
Field required [type=missing, input_value={'name': 's2_z8ff4r_by_me...', 'file_size': 23036}]}, input_type=dict]

Steps to reproduce

  1. Call get_sticker_set method

Code example

sticker_set = await bot.get_sticker_set(stickerset_name)

Logs

Failed to deserialize object
Caused from error: pydantic_core._pydantic_core.ValidationError: 2 validation errors for Response[StickerSet]
 result.is_animated
Field required [type=missing, input_value={'name': 's2_z8ff4r_by_me...', 'file_size': 23036}]}, input_type=dict]
     For further information visit https://errors.pydantic.dev/2.5/v/missing
 result.is_video
   Field required [type=missing, input_value={'name': 's2_z8ff4r_by_me...', 'file_size': 23036}]}, input_type=dict]

Additional information

No response

@KolosDan KolosDan added the bug Something is wrong with the framework label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong with the framework
Projects
None yet
Development

No branches or pull requests

1 participant