return the contact of who wrote the message. :returns: :class:`deltachat.chat.Contact` instance
(self)
| 290 | return self.get_sender_contact().get_chat() |
| 291 | |
| 292 | def get_sender_contact(self): |
| 293 | """return the contact of who wrote the message. |
| 294 | |
| 295 | :returns: :class:`deltachat.chat.Contact` instance |
| 296 | """ |
| 297 | from .contact import Contact |
| 298 | |
| 299 | contact_id = lib.dc_msg_get_from_id(self._dc_msg) |
| 300 | return Contact(self.account, contact_id) |
| 301 | |
| 302 | def is_from_self(self): |
| 303 | """Return true if the message is sent by self.""" |