fix: avoid '/help is not an email address'

This commit is contained in:
missytake 2025-04-21 00:54:04 +02:00
parent b4d8a5279b
commit 832ca22bc1
Signed by: missytake
GPG key ID: 04CC6658320518DF

View file

@ -33,6 +33,8 @@ def command(event):
return snapshot.chat.send_text(snapshot.chat.account.get_qr_code())
elif snapshot.text == "Messages are guaranteed to be end-to-end encrypted from now on.":
return
elif snapshot.text.strip() == "/help":
return snapshot.chat.send_text(HELP_MSG)
elif snapshot.text == "/publish":
vcard_to_upload = snapshot.sender.make_vcard()
if snapshot.get("file"):