mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-26 15:51:26 +00:00
📝 update changelog
This commit is contained in:
@ -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...")
|
||||
|
@ -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]]
|
||||
"""
|
||||
|
Reference in New Issue
Block a user