(self)
| 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"]: |
nothing calls this directly
no test coverage detected