Skip to content

Commit

Permalink
docs(deltachat-rpc-client): document Account.import_vcard()
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Mar 10, 2025
1 parent 8e9c790 commit 491d6ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deltachat-rpc-client/src/deltachat_rpc_client/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ def make_vcard(self, contacts: list[Contact]) -> str:
return self._rpc.make_vcard(self.id, contact_ids)

def import_vcard(self, vcard: str) -> list[Contact]:
"""Import vCard.
Return created or modified contacts in the order they appear in vCard."""
contact_ids = self._rpc.import_vcard_contents(self.id, vcard)
return [Contact(self, contact_id) for contact_id in contact_ids]

Expand Down

0 comments on commit 491d6ab

Please sign in to comment.