aiogram / aiogram/aiogram

Failed deserealization on get_sticker_set method

未关闭
#1,446 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
5.9k
派生
963
平均合并
1 天 17 小时
30 天内合并 PR
4

描述

### Checklist

- [X] I am sure the error is coming from aiogram code
- [X] 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

```python3
sticker_set = await bot.get_sticker_set(stickerset_name)
```

### Logs

```sh
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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。