mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
update python API (#3394)
This commit is contained in:
committed by
GitHub
parent
0d1d1a25da
commit
4f02c811a3
@@ -159,6 +159,10 @@ class Message(object):
|
||||
"""
|
||||
return from_dc_charpointer(lib.dc_get_msg_info(self.account._dc_context, self.id))
|
||||
|
||||
def get_summarytext(self, width: int) -> str:
|
||||
"""Get a message summary as a single line of text. Typically used for notifications."""
|
||||
return from_dc_charpointer(lib.dc_msg_get_summarytext(self._dc_msg, width))
|
||||
|
||||
def continue_key_transfer(self, setup_code):
|
||||
"""extract key and use it as primary key for this account."""
|
||||
res = lib.dc_continue_key_transfer(self.account._dc_context, self.id, as_dc_charpointer(setup_code))
|
||||
|
||||
Reference in New Issue
Block a user