mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Deleted __call__, changed exception text.
This commit is contained in:
parent
24d27ed757
commit
64d363c63e
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue