Skip to content

Field "chat_id" of type str is missing in RemoveChatResponse instance #1

@0xDarkHorse

Description

@0xDarkHorse

Появляется ошибка при удалении группового чата/канала
return ret.from_dict(payload) # type: ignore[return-value] File "<string>", line 6, in __mashumaro_from_dict__ mashumaro.exceptions.MissingField: Field "chat_id" of type str is missing in RemoveChatResponse instance

Чтобы повторить ошибку достаточно выполнить
group_chat = await bot.create_group_chat("Test Chat")
await bot.delete_chat(group_chat.chat_id)

channel = await bot.create_channel("Test Chat")
await bot.delete_chat(channel.chat_id)

При этом сам канал/групповой чат - удаляются

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions