deltachat-rpc-client 2.15.0__py3-none-any.whl → 2.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of deltachat-rpc-client might be problematic. Click here for more details.

@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import json
5
6
  from dataclasses import dataclass
6
7
  from typing import TYPE_CHECKING, Optional, Union
7
8
  from warnings import warn
@@ -470,3 +471,8 @@ class Account:
470
471
  def initiate_autocrypt_key_transfer(self) -> None:
471
472
  """Send Autocrypt Setup Message."""
472
473
  return self._rpc.initiate_autocrypt_key_transfer(self.id)
474
+
475
+ def ice_servers(self) -> list:
476
+ """Return ICE servers for WebRTC configuration."""
477
+ ice_servers_json = self._rpc.ice_servers(self.id)
478
+ return json.loads(ice_servers_json)
@@ -168,6 +168,11 @@ class Chat:
168
168
  msg_id = self._rpc.send_sticker(self.account.id, self.id, path)
169
169
  return Message(self.account, msg_id)
170
170
 
171
+ def resend_messages(self, messages: list[Message]) -> None:
172
+ """Resend a list of messages to this chat."""
173
+ msg_ids = [msg.id for msg in messages]
174
+ self._rpc.resend_messages(self.account.id, msg_ids)
175
+
171
176
  def forward_messages(self, messages: list[Message]) -> None:
172
177
  """Forward a list of messages to this chat."""
173
178
  msg_ids = [msg.id for msg in messages]
@@ -110,3 +110,7 @@ class Message:
110
110
  def end_call(self):
111
111
  """Ends incoming or outgoing call."""
112
112
  self._rpc.end_call(self.account.id, self.id)
113
+
114
+ def get_call_info(self) -> AttrDict:
115
+ """Return information about the call."""
116
+ return AttrDict(self._rpc.call_info(self.account.id, self.id))
@@ -28,9 +28,7 @@ class ACFactory:
28
28
 
29
29
  def get_unconfigured_account(self) -> Account:
30
30
  """Create a new unconfigured account."""
31
- account = self.deltachat.add_account()
32
- account.set_config("verified_one_on_one_chats", "1")
33
- return account
31
+ return self.deltachat.add_account()
34
32
 
35
33
  def get_unconfigured_bot(self) -> Bot:
36
34
  """Create a new unconfigured bot."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deltachat-rpc-client
3
- Version: 2.15.0
3
+ Version: 2.17.0
4
4
  Summary: Python client for Delta Chat core JSON-RPC interface
5
5
  Classifier: Development Status :: 5 - Production/Stable
6
6
  Classifier: Intended Audience :: Developers
@@ -1,19 +1,19 @@
1
1
  deltachat_rpc_client/__init__.py,sha256=zroJARiq9HBi7Ln03KlICOUJHSjm3CGIFkHfXILEdOQ,567
2
2
  deltachat_rpc_client/_utils.py,sha256=v0iWVSa6S-s078GgnnhflCRhA9pfWI-CfK8mjZ4zjXc,6393
3
- deltachat_rpc_client/account.py,sha256=RrZEf0jHegScCcmC2rP6c9JeQ_WQJxwP1T6W1-8bgU8,18938
4
- deltachat_rpc_client/chat.py,sha256=m30Hwg409xrBCsCQlyz0s27wki-hfhHiT0gHzWpDObc,11481
3
+ deltachat_rpc_client/account.py,sha256=pu5grvcWS_Y7hQihNVI4LBRceEq0G2CBOIlgMaTXSNw,19147
4
+ deltachat_rpc_client/chat.py,sha256=x5CEIORL1-731QC4KcXd_0JKtRpe7nT9oAygmKkooHI,11707
5
5
  deltachat_rpc_client/client.py,sha256=UeCJov-ZvB3WMzl_6aJEESGRQCdvS3UAKFL4Adar6cg,7206
6
6
  deltachat_rpc_client/const.py,sha256=r3Mke40sYX39rQ6nPZTY22KGwdskPHlp05WeXFTkHrA,6815
7
7
  deltachat_rpc_client/contact.py,sha256=NLh1XNnD_LQf27pNcVgqNN97Gbv190VSCuEyjjce4L4,1893
8
8
  deltachat_rpc_client/deltachat.py,sha256=4KpiHbpfXM_LmbG-OvtDACK9W09UH0tsJyFunfH9TR4,1544
9
9
  deltachat_rpc_client/events.py,sha256=Y45LoGlQy0i1U-LhoqF9njqJWA8v4b-XHfXZ4VOr1TQ,10205
10
- deltachat_rpc_client/message.py,sha256=OCxCEkPLJRHaZJnM6rHx2Dh0LnBSQI7yvpHvWXi1tOs,4248
10
+ deltachat_rpc_client/message.py,sha256=nnHbuyCq1fVloaDnyppjoE-JdwBhcZnju1_UxlQk_zg,4410
11
11
  deltachat_rpc_client/py.typed,sha256=nGQ9Itq-bkXBn5Ri1JIR0oYnDNv7LDRfkowxBSSqVTM,60
12
- deltachat_rpc_client/pytestplugin.py,sha256=asnQUJ9w386VS1OaHTWvzq8Yz0kD9p2RaJ_DqYXaJ1U,5737
12
+ deltachat_rpc_client/pytestplugin.py,sha256=_UF0a3XHwj5j46b-eNyFI9flhq-c3mqC8K7oPiLY-sc,5650
13
13
  deltachat_rpc_client/rpc.py,sha256=AUY8UJP7NlRSE5ewJs9jGxJdK8etKqsCEFWiIqnX5T8,6981
14
- deltachat_rpc_client-2.15.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
15
- deltachat_rpc_client-2.15.0.dist-info/METADATA,sha256=Pi1_HEhtKgd0DK7gWa_mHxfpMmbmGIcKHpjXr40zNjw,2174
16
- deltachat_rpc_client-2.15.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- deltachat_rpc_client-2.15.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
18
- deltachat_rpc_client-2.15.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
19
- deltachat_rpc_client-2.15.0.dist-info/RECORD,,
14
+ deltachat_rpc_client-2.17.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
15
+ deltachat_rpc_client-2.17.0.dist-info/METADATA,sha256=60ZMWGVf3AuEIGiAeXpDVTWiGdTvWEUDD2k2krzUANI,2174
16
+ deltachat_rpc_client-2.17.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ deltachat_rpc_client-2.17.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
18
+ deltachat_rpc_client-2.17.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
19
+ deltachat_rpc_client-2.17.0.dist-info/RECORD,,