From 2547cb4d1b3261ed32eb4aee7d3dd97ec8b14c76 Mon Sep 17 00:00:00 2001 From: "ZetGo | Aleksej K." Date: Tue, 27 May 2025 02:22:29 +0300 Subject: [PATCH] [test] inline input --- heroku/inline/types.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/heroku/inline/types.py b/heroku/inline/types.py index 0ff3f39..8694ef7 100644 --- a/heroku/inline/types.py +++ b/heroku/inline/types.py @@ -130,8 +130,11 @@ class InlineCall(CallbackQuery, InlineMessage): inline_manager: "InlineManager", # type: ignore # noqa: F821 unit_id: str, ): - CallbackQuery.__init__(self, **call.model_dump()) - + dump = call.model_dump() + if "result_id" in dump: # tryung to avoid ValidationError + dump["id"] = dump.pop("result_id") + dump.setdefault("chat_instance", "") + CallbackQuery.__init__(self, **dump) for attr in { "id", "from_user",