⚗️ add call_api hook

This commit is contained in:
yanyongyu
2021-03-31 16:51:09 +08:00
parent 4e7592de98
commit 8f99b01fb5
8 changed files with 157 additions and 60 deletions

View File

@ -218,6 +218,10 @@ class Bot(BaseBot):
except Exception as e:
Log.error(f'Failed to handle message: {message}', e)
@overrides(BaseBot)
async def _call_api(self, api: str, **data) -> NoReturn:
raise NotImplementedError
@overrides(BaseBot)
async def call_api(self, api: str, **data) -> NoReturn:
"""