messages.setDefaultHistoryTTL #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.setDefaultHistoryTTL#9eb51445 period:int = Bool;

Parameters #

NameTypeDescription
periodintThe new default Time-To-Live of all messages sent in new chats, in seconds.

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400TTL_PERIOD_INVALIDThe specified TTL period is invalid.