Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update chat.py
  • Loading branch information
delivrance authored May 15, 2021
commit 72e656edecd57e9135d1c4b348d60796b9cef749
4 changes: 2 additions & 2 deletions pyrogram/types/user_and_chats/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,12 +987,12 @@ async def set_history_ttl(self, period: int) -> "types.Message":

.. code-block:: python

client.set_chat_history_ttl()
client.set_chat_history_ttl(chat_id, 604800)

Example:
.. code-block:: python

chat.set_history_ttl(68400)
chat.set_history_ttl(604800)

Returns:
:obj:`~pyrogram.types.Message`: On success, the generated service message is returned.
Expand Down