From fcbbb91cde5051a7876eb87a249de078799f94bd Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 17 Mar 2024 22:09:28 +0000 Subject: [PATCH] docs(deltachat-rpc-client): document that 0 is a special value of set_ephemeral_timer() --- deltachat-rpc-client/src/deltachat_rpc_client/chat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/chat.py b/deltachat-rpc-client/src/deltachat_rpc_client/chat.py index a1d03e727d..1a7af80e2d 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/chat.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/chat.py @@ -84,7 +84,9 @@ def set_name(self, name: str) -> None: self._rpc.set_chat_name(self.account.id, self.id, name) def set_ephemeral_timer(self, timer: int) -> None: - """Set ephemeral timer of this chat.""" + """Set ephemeral timer of this chat in seconds. + + 0 means the timer is disabled, use 1 for immediate deletion.""" self._rpc.set_chat_ephemeral_timer(self.account.id, self.id, timer) def get_encryption_info(self) -> str: