diff --git a/src/keyserver_bot/hooks.py b/src/keyserver_bot/hooks.py index 0e31b40..2f51cda 100644 --- a/src/keyserver_bot/hooks.py +++ b/src/keyserver_bot/hooks.py @@ -21,7 +21,7 @@ def command(event): snapshot = event.message_snapshot if snapshot.text == "/generate-invite": - return snapshot.chat.send_text(snapshot.account.get_qr_code()) + return snapshot.chat.send_text(snapshot.chat.account.get_qr_code()) email = snapshot.text try: validate_email(email, check_deliverability=False)