deltachat-rpc-client 2.14.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 +10 -0
- deltachat_rpc_client/const.py +4 -0
- deltachat_rpc_client/message.py +12 -0
- {deltachat_rpc_client-2.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/METADATA +1 -1
- {deltachat_rpc_client-2.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/RECORD +10 -10
- {deltachat_rpc_client-2.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/WHEEL +0 -0
- {deltachat_rpc_client-2.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/entry_points.txt +0 -0
- {deltachat_rpc_client-2.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/licenses/LICENSE +0 -0
- {deltachat_rpc_client-2.14.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]
|
|
@@ -289,3 +294,8 @@ class Chat:
|
|
|
289
294
|
f.write(vcard.encode())
|
|
290
295
|
f.flush()
|
|
291
296
|
self._rpc.send_msg(self.account.id, self.id, {"viewtype": ViewType.VCARD, "file": f.name})
|
|
297
|
+
|
|
298
|
+
def place_outgoing_call(self, place_call_info: str) -> Message:
|
|
299
|
+
"""Starts an outgoing call."""
|
|
300
|
+
msg_id = self._rpc.place_outgoing_call(self.account.id, self.id, place_call_info)
|
|
301
|
+
return Message(self.account, msg_id)
|
deltachat_rpc_client/const.py
CHANGED
|
@@ -73,6 +73,10 @@ class EventType(str, Enum):
|
|
|
73
73
|
CHATLIST_ITEM_CHANGED = "ChatlistItemChanged"
|
|
74
74
|
ACCOUNTS_CHANGED = "AccountsChanged"
|
|
75
75
|
ACCOUNTS_ITEM_CHANGED = "AccountsItemChanged"
|
|
76
|
+
INCOMING_CALL = "IncomingCall"
|
|
77
|
+
INCOMING_CALL_ACCEPTED = "IncomingCallAccepted"
|
|
78
|
+
OUTGOING_CALL_ACCEPTED = "OutgoingCallAccepted"
|
|
79
|
+
CALL_ENDED = "CallEnded"
|
|
76
80
|
CONFIG_SYNCED = "ConfigSynced"
|
|
77
81
|
WEBXDC_REALTIME_DATA = "WebxdcRealtimeData"
|
|
78
82
|
WEBXDC_REALTIME_ADVERTISEMENT_RECEIVED = "WebxdcRealtimeAdvertisementReceived"
|
deltachat_rpc_client/message.py
CHANGED
|
@@ -102,3 +102,15 @@ class Message:
|
|
|
102
102
|
def send_webxdc_realtime_data(self, data) -> None:
|
|
103
103
|
"""Send data to the realtime channel."""
|
|
104
104
|
yield self._rpc.send_webxdc_realtime_data.future(self.account.id, self.id, list(data))
|
|
105
|
+
|
|
106
|
+
def accept_incoming_call(self, accept_call_info):
|
|
107
|
+
"""Accepts an incoming call."""
|
|
108
|
+
self._rpc.accept_incoming_call(self.account.id, self.id, accept_call_info)
|
|
109
|
+
|
|
110
|
+
def end_call(self):
|
|
111
|
+
"""Ends incoming or outgoing call."""
|
|
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
|
-
deltachat_rpc_client/const.py,sha256=
|
|
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.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{deltachat_rpc_client-2.14.0.dist-info → deltachat_rpc_client-2.16.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|