messages.SetHistoryTTL#

class pyrogram.raw.functions.messages.SetHistoryTTL#

Set maximum Time-To-Live of all messages in the specified chat.

Details:
  • Layer: 158

  • ID: B80E5FE4

Parameters:
  • peer (InputPeer) – The dialog.

  • period (int 32-bit) – Automatically delete all messages sent in the chat after this many seconds.

Returns:

Updates