mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 09:38:21 +08:00
♿ matcher.send will return bot.send
This commit is contained in:
parent
7232c89292
commit
bf7b2a8cbe
@ -418,7 +418,7 @@ class Matcher(metaclass=MatcherMeta):
|
|||||||
"""
|
"""
|
||||||
bot = current_bot.get()
|
bot = current_bot.get()
|
||||||
event = current_event.get()
|
event = current_event.get()
|
||||||
await bot.send(event=event, message=message, **kwargs)
|
return await bot.send(event=event, message=message, **kwargs)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def finish(cls,
|
async def finish(cls,
|
||||||
|
Loading…
Reference in New Issue
Block a user