Skip to content

Commit

Permalink
fix invite URL printing: now core returns the invite URL
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jan 9, 2025
1 parent 055f3cf commit b40fb2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deltabot_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ def _qr_cmd_for_acc(bot: Bot, accid: int) -> None:
code = qrcode.QRCode()
code.add_data(qrdata)
code.print_ascii(invert=True)
fragment = qrdata.split(":", maxsplit=1)[1].replace("#", "&", 1)
print(f"https://i.delta.chat/#{fragment}")
print(qrdata)
else:
bot.logger.error("account not configured")

Expand Down

0 comments on commit b40fb2b

Please sign in to comment.