Move to json_serde, add tests and implement missing python api

This commit is contained in:
jikstra
2019-11-26 22:10:52 +01:00
committed by holger krekel
parent 1b79f513a3
commit 6d30ccfc63
3 changed files with 34 additions and 31 deletions

View File

@@ -331,6 +331,12 @@ class Chat(object):
return None
return from_dc_charpointer(dc_res)
def get_color(self):
return lib.dc_chat_get_color(self._dc_chat)
def get_subtitle(self):
return from_dc_charpointer(lib.dc_chat_get_subtitle(self._dc_chat))
# ------ location streaming API ------------------------------
def is_sending_locations(self):
@@ -339,6 +345,9 @@ class Chat(object):
"""
return lib.dc_is_sending_locations_to_chat(self._dc_context, self.id)
def is_archived(self):
return lib.dc_chat_get_archived(self._dc_chat)
def enable_sending_locations(self, seconds):
"""enable sending locations for this chat.