From 16beafdc788b4d062b85ebffea1b3adfd62198a8 Mon Sep 17 00:00:00 2001 From: Ilya Nikolaev <65247719+ilya-nikolaev@users.noreply.github.com> Date: Thu, 22 May 2025 22:48:58 +0300 Subject: [PATCH] Fixed bug with wrong message --- aiogram/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/exceptions.py b/aiogram/exceptions.py index a1b73d56..9f609d51 100644 --- a/aiogram/exceptions.py +++ b/aiogram/exceptions.py @@ -119,7 +119,7 @@ class TelegramMigrateToChat(TelegramAPIError): if chat_id := getattr(method, "chat_id", None): description += f" from {chat_id}" description += f"\nOriginal description: {message}" - super().__init__(method=method, message=message) + super().__init__(method=method, message=description) self.migrate_to_chat_id = migrate_to_chat_id