From fa150b4d6f9574b76976aa57216ee62d547ba84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asiel=20D=C3=ADaz=20Ben=C3=ADtez?= Date: Fri, 17 May 2019 14:38:29 -0400 Subject: [PATCH] Update chatting.py (#679) added get_type --- python/src/deltachat/chatting.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/src/deltachat/chatting.py b/python/src/deltachat/chatting.py index ab0bdaba..bc9ac220 100644 --- a/python/src/deltachat/chatting.py +++ b/python/src/deltachat/chatting.py @@ -106,6 +106,13 @@ class Chat(object): name = as_dc_charpointer(name) return lib.dc_set_chat_name(self._dc_context, self.id, name) + def get_type(self): + """ return type of this chat. + + :returns: one of const.DC_CHAT_TYPE_* + """ + return lib.dc_chat_get_type(self._dc_chat) + # ------ chat messaging API ------------------------------ def send_text(self, text):