mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-08-01 18:50:00 +00:00
⚗️ add call_api hook
This commit is contained in:
@ -68,7 +68,8 @@ class Bot(BaseBot):
|
||||
async def handle_message(self, message: dict):
|
||||
...
|
||||
|
||||
async def call_api(self, api: str, **data) -> Any:
|
||||
async def call_api(self, api: str, *, self_id: Optional[str],
|
||||
**data) -> Any:
|
||||
...
|
||||
|
||||
async def send(self, event: Event, message: Union[str, Message,
|
||||
|
Reference in New Issue
Block a user