api(deltachat-rpc-client): add check_qr and set_config_from_qr APIs

This commit is contained in:
link2xt
2024-04-05 18:14:18 +00:00
parent 2e2fa9e74f
commit 43523a96a2

View File

@@ -76,6 +76,12 @@ class Account:
"""Get self avatar."""
return self.get_config("selfavatar")
def check_qr(self, qr):
return self._rpc.check_qr(self.id, qr)
def set_config_from_qr(self, qr: str):
self._rpc.set_config_from_qr(self.id, qr)
@futuremethod
def configure(self):
"""Configure an account."""