MCPcopy Create free account
hub / github.com/chatmail/core / get_status_updates

Method get_status_updates

python/src/deltachat/message.py:133–143  ·  view source on GitHub ↗

Get the status updates of this webxdc message. The status updates may be sent by yourself or by other members. If this message doesn't have a webxdc instance, an empty list is returned. :param serial: The last known serial. Pass 0 if there are no known serials to receive al

(self, serial: int = 0)

Source from the content-addressed store, hash-verified

131 return from_dc_charpointer(lib.dc_msg_get_filemime(self._dc_msg))
132
133 def get_status_updates(self, serial: int = 0) -> list:
134 """Get the status updates of this webxdc message.
135
136 The status updates may be sent by yourself or by other members.
137 If this message doesn't have a webxdc instance, an empty list is returned.
138
139 :param serial: The last known serial. Pass 0 if there are no known serials to receive all updates.
140 """
141 return json.loads(
142 from_dc_charpointer(lib.dc_get_webxdc_status_updates(self.account._dc_context, self.id, serial)),
143 )
144
145 def send_status_update(self, json_data: Union[str, dict], description: str) -> bool:
146 """Send an status update for the webxdc instance of this message.

Callers 2

test_webxdc_messageFunction · 0.80
test_webxdc_huge_updateFunction · 0.80

Calls 1

from_dc_charpointerFunction · 0.85

Tested by 2

test_webxdc_messageFunction · 0.64
test_webxdc_huge_updateFunction · 0.64