📝 update changelog

This commit is contained in:
yanyongyu
2021-03-31 21:20:07 +08:00
parent ca08c56df7
commit 59ec5bacde
7 changed files with 27 additions and 6 deletions

View File

@ -156,7 +156,7 @@ class Bot(abc.ABC):
await bot.call_api("send_msg", message="hello world")
await bot.send_msg(message="hello world")
"""
coros = list(map(lambda x: x(api, data), self._call_api_hook))
coros = list(map(lambda x: x(self, api, data), self._call_api_hook))
if coros:
try:
logger.debug("Running CallingAPI hooks...")

View File

@ -71,7 +71,7 @@ T_WebSocketDisconnectionHook = Callable[["Bot"], Awaitable[None]]
WebSocket 连接断开时执行的函数
"""
T_CallingAPIHook = Callable[[str, Dict[str, Any]], Awaitable[None]]
T_CallingAPIHook = Callable[["Bot", str, Dict[str, Any]], Awaitable[None]]
T_EventPreProcessor = Callable[["Bot", "Event", T_State], Awaitable[None]]
"""