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)
| 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. |