deltachat-rpc-client 2.15.0__py3-none-any.whl → 2.16.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.
- deltachat_rpc_client/account.py +6 -0
- deltachat_rpc_client/chat.py +5 -0
- deltachat_rpc_client/message.py +4 -0
- {deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/METADATA +1 -1
- {deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/RECORD +9 -9
- {deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/WHEEL +0 -0
- {deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/entry_points.txt +0 -0
- {deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/licenses/LICENSE +0 -0
- {deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/top_level.txt +0 -0
deltachat_rpc_client/account.py
CHANGED
|
@@ -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)
|
deltachat_rpc_client/chat.py
CHANGED
|
@@ -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]
|
deltachat_rpc_client/message.py
CHANGED
|
@@ -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))
|
|
@@ -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=
|
|
4
|
-
deltachat_rpc_client/chat.py,sha256=
|
|
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=
|
|
10
|
+
deltachat_rpc_client/message.py,sha256=nnHbuyCq1fVloaDnyppjoE-JdwBhcZnju1_UxlQk_zg,4410
|
|
11
11
|
deltachat_rpc_client/py.typed,sha256=nGQ9Itq-bkXBn5Ri1JIR0oYnDNv7LDRfkowxBSSqVTM,60
|
|
12
12
|
deltachat_rpc_client/pytestplugin.py,sha256=asnQUJ9w386VS1OaHTWvzq8Yz0kD9p2RaJ_DqYXaJ1U,5737
|
|
13
13
|
deltachat_rpc_client/rpc.py,sha256=AUY8UJP7NlRSE5ewJs9jGxJdK8etKqsCEFWiIqnX5T8,6981
|
|
14
|
-
deltachat_rpc_client-2.
|
|
15
|
-
deltachat_rpc_client-2.
|
|
16
|
-
deltachat_rpc_client-2.
|
|
17
|
-
deltachat_rpc_client-2.
|
|
18
|
-
deltachat_rpc_client-2.
|
|
19
|
-
deltachat_rpc_client-2.
|
|
14
|
+
deltachat_rpc_client-2.16.0.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
|
|
15
|
+
deltachat_rpc_client-2.16.0.dist-info/METADATA,sha256=tUyG1slpA5qtLThuLnPj9BCJ-ynENlKE5JGButMxqqw,2174
|
|
16
|
+
deltachat_rpc_client-2.16.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
deltachat_rpc_client-2.16.0.dist-info/entry_points.txt,sha256=VHpX6EnKBaNj89qJWctApThnMa8suyaamfZEnQacXgc,81
|
|
18
|
+
deltachat_rpc_client-2.16.0.dist-info/top_level.txt,sha256=ePNMkY10htGrLiLydH1ITvYFM3LcTEa51HyPqJ40hDk,21
|
|
19
|
+
deltachat_rpc_client-2.16.0.dist-info/RECORD,,
|
|
File without changes
|
{deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.15.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|