mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
python: add error property to messages
This commit is contained in:
committed by
link2xt
parent
0e1ca4323c
commit
bb9e6038c4
@@ -212,6 +212,11 @@ class Message(object):
|
||||
return email.message_from_bytes(s)
|
||||
return email.message_from_string(s)
|
||||
|
||||
@property
|
||||
def error(self):
|
||||
"""Error message"""
|
||||
return from_dc_charpointer(lib.dc_msg_get_error(self._dc_msg))
|
||||
|
||||
@property
|
||||
def chat(self):
|
||||
"""chat this message was posted in.
|
||||
|
||||
Reference in New Issue
Block a user