return -> yield
This commit is contained in:
parent
2e7326cef7
commit
8bf77f91f1
2 changed files with 2 additions and 2 deletions
|
@ -12,6 +12,6 @@ class PingPlugin(Plugin):
|
|||
if message.text == "!ping":
|
||||
delta = datetime.now() - message.date
|
||||
delta_ms = delta.seconds * 1000 + delta.microseconds / 1000
|
||||
return Message(
|
||||
yield Message(
|
||||
chat=message.chat, reply_to=message.id, text=f"pong! ({delta_ms}ms)",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue