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

Method __repr__

python/src/deltachat/message.py:34–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 return self.account == other.account and self.id == other.id
33
34 def __repr__(self) -> str:
35 c = self.get_sender_contact()
36 typ = "outgoing" if self.is_outgoing() else "incoming"
37 return (
38 f"<Message {typ} sys={self.is_system_message()} {repr(self.text[:100])} "
39 f"id={self.id} sender={c.id}/{c.addr} chat={self.chat.id}/{self.chat.get_name()}>"
40 )
41
42 @classmethod
43 def from_db(cls, account, id) -> Optional["Message"]:

Callers

nothing calls this directly

Calls 4

get_sender_contactMethod · 0.95
is_outgoingMethod · 0.95
is_system_messageMethod · 0.95
get_nameMethod · 0.45

Tested by

no test coverage detected