From 64d363c63ec2ff143c42bd972e814865edaf6031 Mon Sep 17 00:00:00 2001 From: qvvonk Date: Sun, 15 Dec 2024 03:07:58 +0300 Subject: [PATCH] Deleted __call__, changed exception text. --- aiogram/methods/base.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aiogram/methods/base.py b/aiogram/methods/base.py index 0c9e64a4..3279199a 100644 --- a/aiogram/methods/base.py +++ b/aiogram/methods/base.py @@ -90,9 +90,6 @@ class TelegramMethod(BotContextController, BaseModel, Generic[TelegramType], ABC "This method is not mounted to a any bot instance, please call it explicilty " "with bot instance `await bot(method)`\n" "or mount method to a bot instance `method.as_(bot)` " - "and then call it `await method()`" + "and then call it `await method`" ) return self.emit(bot).__await__() - - async def __call__(self) -> TelegramType: - return await self