File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
deltachat-rpc-client/src/deltachat_rpc_client Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import json
4
4
from dataclasses import dataclass
5
- from typing import TYPE_CHECKING , Optional , Union
5
+ from typing import TYPE_CHECKING , List , Optional , Union
6
6
7
7
from ._utils import AttrDict , futuremethod
8
8
from .const import EventType
@@ -39,6 +39,11 @@ def get_snapshot(self) -> AttrDict:
39
39
snapshot ["message" ] = self
40
40
return snapshot
41
41
42
+ def get_read_receipts (self ) -> List [AttrDict ]:
43
+ """Get message read receipts."""
44
+ read_receipts = self ._rpc .get_message_read_receipts (self .account .id , self .id )
45
+ return [AttrDict (read_receipt ) for read_receipt in read_receipts ]
46
+
42
47
def get_reactions (self ) -> Optional [AttrDict ]:
43
48
"""Get message reactions."""
44
49
reactions = self ._rpc .get_message_reactions (self .account .id , self .id )
You can’t perform that action at this time.
0 commit comments