messages.SetDefaultHistoryTTL

class pyrogram.raw.functions.messages.SetDefaultHistoryTTL

Changes the default value of the Time-To-Live setting, applied to all new chats.

Details:
  • Layer: 223

  • ID: 9EB51445

Parameters:

period (int 32-bit) – The new default Time-To-Live of all messages sent in new chats, in seconds.

Returns:

bool

TL Schema

messages.setDefaultHistoryTTL#9eb51445
period:int

= Bool

Parameter Tree

SetDefaultHistoryTTL
└── periodint

Example

await app.invoke(
    SetDefaultHistoryTTL(
        period=0,
    )
)