fix: avoid '/help is not an email address'
This commit is contained in:
parent
b4d8a5279b
commit
832ca22bc1
|
|
@ -33,6 +33,8 @@ def command(event):
|
||||||
return snapshot.chat.send_text(snapshot.chat.account.get_qr_code())
|
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.":
|
elif snapshot.text == "Messages are guaranteed to be end-to-end encrypted from now on.":
|
||||||
return
|
return
|
||||||
|
elif snapshot.text.strip() == "/help":
|
||||||
|
return snapshot.chat.send_text(HELP_MSG)
|
||||||
elif snapshot.text == "/publish":
|
elif snapshot.text == "/publish":
|
||||||
vcard_to_upload = snapshot.sender.make_vcard()
|
vcard_to_upload = snapshot.sender.make_vcard()
|
||||||
if snapshot.get("file"):
|
if snapshot.get("file"):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue