Fix python bindings call to dc_chat_get_remaining_mute_duration

This commit is contained in:
Alexander Krotov
2020-08-07 00:53:48 +03:00
committed by link2xt
parent 801b9f3ffa
commit da5796e8a6

View File

@@ -137,7 +137,7 @@ class Chat(object):
:param duration:
:returns: Returns the number of seconds the chat is still muted for. (0 for not muted, -1 forever muted)
"""
return bool(lib.dc_chat_get_remaining_mute_duration(self.id))
return lib.dc_chat_get_remaining_mute_duration(self._dc_chat)
def get_ephemeral_timer(self):
""" get ephemeral timer.