MCPcopy Create free account
hub / github.com/chatmail/core / get_mute_duration

Method get_mute_duration

python/src/deltachat/chat.py:211–217  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

test_muteMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_muteMethod · 0.64