From 43523a96a21fb99f3f369742b968ae8f4c96ea1d Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 5 Apr 2024 18:14:18 +0000 Subject: [PATCH] api(deltachat-rpc-client): add check_qr and set_config_from_qr APIs --- deltachat-rpc-client/src/deltachat_rpc_client/account.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/account.py b/deltachat-rpc-client/src/deltachat_rpc_client/account.py index dc3053e51..25b78bf7d 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/account.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/account.py @@ -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."""