mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-29 09:10:22 +00:00
🏷️ Add typing for cqhttp api
This commit is contained in:
@ -12,7 +12,7 @@ test_message = on_message(state={"default": 1})
|
||||
async def test_handler(bot: Bot, event: Event, state: dict):
|
||||
print("[*] Test Matcher Received:", event)
|
||||
state["event"] = event
|
||||
await bot.send_private_msg(message="Received", user_id=event.user_id)
|
||||
await bot.send(message="Received", event=event)
|
||||
|
||||
|
||||
@test_message.receive()
|
||||
|
Reference in New Issue
Block a user