Skip to content

Field "last_message" of type Optional[LastMessage] in GetChatByIdResponse has invalid value #8

@xvlady

Description

@xvlady

chat_info = await update.bot.get_chat_by_id(update.chat_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/trueconf/client/bot.py", line 937, in get_chat_by_id
return await self(call)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/trueconf/client/bot.py", line 162, in call
return await method(self)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/trueconf/methods/base.py", line 97, in call
return self._parse_return(data)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/trueconf/methods/base.py", line 68, in _parse_return
return ret.from_dict(payload) # type: ignore[return-value]
^^^^^^^^^^^^^^^^^^^^^^
File "", line 39, in mashumaro_from_dict
mashumaro.exceptions.InvalidFieldValue: Field "last_message" of type Optional[LastMessage] in GetChatByIdResponse has invalid value {'messageId': 'b..6', 'timestamp': 1776828976619, 'author': {'id': 'a@trueconf.n.com', 'type': 1}, 'type': 201, 'content': {'chatId': '8..8', 'messageId': 'e..e', 'author': {'id': 'v@trueconf.n.com', 'type': 1}, 'type': 200, 'timestamp': 1776828976619, 'content': {'text': 'Created:\t16.04.2026 17:12
Updated:\t20.04.2026 13:05
Resolved:\t20.04.2026 11:35', 'parseMode': 'html'}}}
Версия библиотеки 1.1.10
Сервера 5.5.2

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