deltachat-rpc-client 1.155.6__py3-none-any.whl → 1.156.1__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.
@@ -301,6 +301,13 @@ class Account:
301
301
  if event.kind == EventType.INCOMING_MSG:
302
302
  return event
303
303
 
304
+ def wait_for_msgs_changed_event(self):
305
+ """Wait for messages changed event and return it."""
306
+ while True:
307
+ event = self.wait_for_event()
308
+ if event.kind == EventType.MSGS_CHANGED:
309
+ return event
310
+
304
311
  def wait_for_incoming_msg(self):
305
312
  """Wait for incoming message and return it.
306
313
 
@@ -352,3 +359,7 @@ class Account:
352
359
  """Import keys."""
353
360
  passphrase = "" # Importing passphrase-protected keys is currently not supported.
354
361
  self._rpc.import_self_keys(self.id, str(path), passphrase)
362
+
363
+ def initiate_autocrypt_key_transfer(self) -> None:
364
+ """Send Autocrypt Setup Message."""
365
+ return self._rpc.initiate_autocrypt_key_transfer(self.id)
@@ -124,6 +124,7 @@ class Chat:
124
124
  html: Optional[str] = None,
125
125
  viewtype: Optional[ViewType] = None,
126
126
  file: Optional[str] = None,
127
+ filename: Optional[str] = None,
127
128
  location: Optional[tuple[float, float]] = None,
128
129
  override_sender_name: Optional[str] = None,
129
130
  quoted_msg: Optional[Union[int, Message]] = None,
@@ -137,6 +138,7 @@ class Chat:
137
138
  "html": html,
138
139
  "viewtype": viewtype,
139
140
  "file": file,
141
+ "filename": filename,
140
142
  "location": location,
141
143
  "overrideSenderName": override_sender_name,
142
144
  "quotedMessageId": quoted_msg,
@@ -172,13 +174,14 @@ class Chat:
172
174
  self,
173
175
  text: Optional[str] = None,
174
176
  file: Optional[str] = None,
177
+ filename: Optional[str] = None,
175
178
  quoted_msg: Optional[int] = None,
176
179
  viewtype: Optional[str] = None,
177
180
  ) -> None:
178
181
  """Set draft message."""
179
182
  if isinstance(quoted_msg, Message):
180
183
  quoted_msg = quoted_msg.id
181
- self._rpc.misc_set_draft(self.account.id, self.id, text, file, quoted_msg, viewtype)
184
+ self._rpc.misc_set_draft(self.account.id, self.id, text, file, filename, quoted_msg, viewtype)
182
185
 
183
186
  def remove_draft(self) -> None:
184
187
  """Remove draft message."""
@@ -52,6 +52,9 @@ class Message:
52
52
  """Mark the message as seen."""
53
53
  self._rpc.markseen_msgs(self.account.id, [self.id])
54
54
 
55
+ def continue_autocrypt_key_transfer(self, setup_code: str) -> None:
56
+ self._rpc.continue_autocrypt_key_transfer(self.account.id, self.id, setup_code)
57
+
55
58
  def send_webxdc_status_update(self, update: Union[dict, str], description: str) -> None:
56
59
  """Send a webxdc status update. This message must be a webxdc."""
57
60
  if not isinstance(update, str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: deltachat-rpc-client
3
- Version: 1.155.6
3
+ Version: 1.156.1
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=L19BWnRu9TMF--jQ7e5Asgme951WGsldrTknW86KyTg,566
2
2
  deltachat_rpc_client/_utils.py,sha256=pLOV_pxS2MRreLtq-5rnKJp-BP0m8T4LcbJ8N7Xy-D0,6304
3
- deltachat_rpc_client/account.py,sha256=MTM9kA5v3HRaLUvCLfe6bsuMEE20ZyQEBlM776CJSLw,13760
4
- deltachat_rpc_client/chat.py,sha256=bkhbSqbe-9zsWCakIiFFAtMMdfbffBJucFpP3sH6hWI,11084
3
+ deltachat_rpc_client/account.py,sha256=8x2EQJR0ZsGY0_yDvLtESdcoykhyqyMYwGD0u4Kroz4,14175
4
+ deltachat_rpc_client/chat.py,sha256=1pbuEBWBjZDD9qQ3U1hY5jozzx0MSs9Ybpw33reA2MU,11208
5
5
  deltachat_rpc_client/client.py,sha256=yyXt2USkBeTsqNxtXZNNUqdsPVkqEUHYf7C-5JFmX7s,7043
6
6
  deltachat_rpc_client/const.py,sha256=geXY_H-JHn2HLsYPAAWbwnX5LOksU7zqDZh3AOwmUpg,5577
7
7
  deltachat_rpc_client/contact.py,sha256=oa7EbyYIsIVK3N-L772qSmYuwr1JQGsr2K5vOjEy9AY,1983
8
8
  deltachat_rpc_client/deltachat.py,sha256=c22_2GX71we6JwQ4yjP-S89mrUYPPbEb3rrPwHHeXt4,1538
9
9
  deltachat_rpc_client/events.py,sha256=qYgydsbuWYxQ1PO5ms-D8I5aHpTIiQ6Fg9p23QTvqf0,9877
10
- deltachat_rpc_client/message.py,sha256=QePyxloDqBZCufU98HR1z9JYK01mvqMnNADFkuaHi1g,2860
10
+ deltachat_rpc_client/message.py,sha256=LVgQTzgaTS-24NPqSLYjgCtyz9PiTPWQgO0c_j9tIs4,3021
11
11
  deltachat_rpc_client/py.typed,sha256=nGQ9Itq-bkXBn5Ri1JIR0oYnDNv7LDRfkowxBSSqVTM,60
12
12
  deltachat_rpc_client/pytestplugin.py,sha256=zRRxsSBvzpbRUxSmKjd7EKZbosAb60Ew53Yu5W7W4Nc,4055
13
13
  deltachat_rpc_client/rpc.py,sha256=7RIdyEDwOXU0ACU0LanVqTT1RuIDci5iDr7dNEDE_tE,6554
14
- deltachat_rpc_client-1.155.6.dist-info/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
15
- deltachat_rpc_client-1.155.6.dist-info/METADATA,sha256=-Ajj7XV4Jc-FOoNiRCmIwVCyKcG2nqmh3mUHkDD0jZI,2153
16
- deltachat_rpc_client-1.155.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
17
- deltachat_rpc_client-1.155.6.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
18
- deltachat_rpc_client-1.155.6.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
19
- deltachat_rpc_client-1.155.6.dist-info/RECORD,,
14
+ deltachat_rpc_client-1.156.1.dist-info/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
15
+ deltachat_rpc_client-1.156.1.dist-info/METADATA,sha256=pAREr6If1urnQCiZw3EjGED-jmHaUSai1U808YpTuuo,2153
16
+ deltachat_rpc_client-1.156.1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
17
+ deltachat_rpc_client-1.156.1.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
18
+ deltachat_rpc_client-1.156.1.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
19
+ deltachat_rpc_client-1.156.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5