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

Method get_sender_contact

python/src/deltachat/message.py:292–300  ·  view source on GitHub ↗

return the contact of who wrote the message. :returns: :class:`deltachat.chat.Contact` instance

(self)

Source from the content-addressed store, hash-verified

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

Calls 1

ContactClass · 0.70