Deleted __call__, changed exception text.

This commit is contained in:
qvvonk 2024-12-15 03:07:58 +03:00
parent 24d27ed757
commit 64d363c63e

View file

@ -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