1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 10:19:16 +02:00

Update chatting.py (#679)

added get_type
This commit is contained in:
Asiel Díaz Benítez 2019-05-17 14:38:29 -04:00 committed by Lars-Magnus Skog
parent deefd24fc1
commit fa150b4d6f

View file

@ -106,6 +106,13 @@ class Chat(object):
name = as_dc_charpointer(name) name = as_dc_charpointer(name)
return lib.dc_set_chat_name(self._dc_context, self.id, 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 ------------------------------ # ------ chat messaging API ------------------------------
def send_text(self, text): def send_text(self, text):