Returns the number of seconds until the mute of this chat is lifted. :param duration: :returns: Returns the number of seconds the chat is still muted for. (0 for not muted, -1 forever muted)
(self)
| 209 | lib.dc_set_chat_visibility(self.account._dc_context, self.id, const.DC_CHAT_VISIBILITY_NORMAL) |
| 210 | |
| 211 | def get_mute_duration(self) -> int: |
| 212 | """Returns the number of seconds until the mute of this chat is lifted. |
| 213 | |
| 214 | :param duration: |
| 215 | :returns: Returns the number of seconds the chat is still muted for. (0 for not muted, -1 forever muted) |
| 216 | """ |
| 217 | return lib.dc_chat_get_remaining_mute_duration(self._dc_chat) |
| 218 | |
| 219 | def get_ephemeral_timer(self) -> int: |
| 220 | """get ephemeral timer. |