return -> yield
This commit is contained in:
parent
2e7326cef7
commit
8bf77f91f1
2 changed files with 2 additions and 2 deletions
|
@ -8,4 +8,4 @@ class LoquitoPlugin(Plugin):
|
|||
@classmethod
|
||||
async def on_message(cls, message):
|
||||
if "lo quito" in message.text.lower():
|
||||
return Message(chat=message.chat, reply_to=message.id, text="Loquito tu.",)
|
||||
yield Message(chat=message.chat, reply_to=message.id, text="Loquito tu.",)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue