deltachat-rpc-client 2.24.0__py3-none-any.whl → 2.26.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.
@@ -399,9 +399,10 @@ class Account:
399
399
  next_msg_ids = self._rpc.get_next_msgs(self.id)
400
400
  return [Message(self, msg_id) for msg_id in next_msg_ids]
401
401
 
402
+ @futuremethod
402
403
  def wait_next_messages(self) -> list[Message]:
403
404
  """Wait for new messages and return a list of them."""
404
- next_msg_ids = self._rpc.wait_next_msgs(self.id)
405
+ next_msg_ids = yield self._rpc.wait_next_msgs.future(self.id)
405
406
  return [Message(self, msg_id) for msg_id in next_msg_ids]
406
407
 
407
408
  def wait_for_incoming_msg_event(self):
@@ -91,19 +91,17 @@ class ChatId(IntEnum):
91
91
  LAST_SPECIAL = 9
92
92
 
93
93
 
94
- class ChatType(IntEnum):
94
+ class ChatType(str, Enum):
95
95
  """Chat type."""
96
96
 
97
- UNDEFINED = 0
98
-
99
- SINGLE = 100
97
+ SINGLE = "Single"
100
98
  """1:1 chat, i.e. a direct chat with a single contact"""
101
99
 
102
- GROUP = 120
100
+ GROUP = "Group"
103
101
 
104
- MAILINGLIST = 140
102
+ MAILINGLIST = "Mailinglist"
105
103
 
106
- OUT_BROADCAST = 160
104
+ OUT_BROADCAST = "OutBroadcast"
107
105
  """Outgoing broadcast channel, called "Channel" in the UI.
108
106
 
109
107
  The user can send into this channel,
@@ -115,7 +113,7 @@ class ChatType(IntEnum):
115
113
  which would make it hard to grep for it.
116
114
  """
117
115
 
118
- IN_BROADCAST = 165
116
+ IN_BROADCAST = "InBroadcast"
119
117
  """Incoming broadcast channel, called "Channel" in the UI.
120
118
 
121
119
  This channel is read-only,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deltachat-rpc-client
3
- Version: 2.24.0
3
+ Version: 2.26.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,9 +1,9 @@
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=kJnqWgWIn7EMFtf1aEwyKpAgkHU_8lc6Zd_aheTLOp0,19072
3
+ deltachat_rpc_client/account.py,sha256=R8lthfdyZtQrje5WLd42lnReOAgxKk7dEIZyZfYKe40,19103
4
4
  deltachat_rpc_client/chat.py,sha256=x5CEIORL1-731QC4KcXd_0JKtRpe7nT9oAygmKkooHI,11707
5
5
  deltachat_rpc_client/client.py,sha256=6eP_lH5z7G5Sy7vDRNfKNY3dkUqJqKZDVyCGjynsuW8,7181
6
- deltachat_rpc_client/const.py,sha256=1SQ-TPm1w1lDGW8G_k4RwR6XA5xK6He_3hxhXBJCKmE,6652
6
+ deltachat_rpc_client/const.py,sha256=p6hSXNYLBpPLpMz0UkT8QnMrqmA_cZ3sw-o8S3ryVM4,6675
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
@@ -11,9 +11,9 @@ deltachat_rpc_client/message.py,sha256=PWSm5e-woWgYXPcnwygQO0fNSRV-NvKvuerqWkJxi
11
11
  deltachat_rpc_client/py.typed,sha256=nGQ9Itq-bkXBn5Ri1JIR0oYnDNv7LDRfkowxBSSqVTM,60
12
12
  deltachat_rpc_client/pytestplugin.py,sha256=LINsTZ-ICKhUzvjmrJe7kZsJAAj5wGA5btbH1vkDGWY,5622
13
13
  deltachat_rpc_client/rpc.py,sha256=AUY8UJP7NlRSE5ewJs9jGxJdK8etKqsCEFWiIqnX5T8,6981
14
- deltachat_rpc_client-2.24.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
15
- deltachat_rpc_client-2.24.0.dist-info/METADATA,sha256=qGvHMHCE2xhorbGofFafP5EphxYUUxpUgU2As9MwmdA,2225
16
- deltachat_rpc_client-2.24.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- deltachat_rpc_client-2.24.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
18
- deltachat_rpc_client-2.24.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
19
- deltachat_rpc_client-2.24.0.dist-info/RECORD,,
14
+ deltachat_rpc_client-2.26.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
15
+ deltachat_rpc_client-2.26.0.dist-info/METADATA,sha256=NYktAx-rwDr8BsXaKgpzkBHpoXfiO0SeOo51mVneAPA,2225
16
+ deltachat_rpc_client-2.26.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ deltachat_rpc_client-2.26.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
18
+ deltachat_rpc_client-2.26.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
19
+ deltachat_rpc_client-2.26.0.dist-info/RECORD,,