Layer 220
method Users
messages.setDefaultHistoryTTL#9eb51445 period:int = Bool;

Parameters

Name Type Description
Period int The new default Time-To-Live of all messages sent in new chats, in seconds.

Returns

Bool

Possible Errors

Code Type Description
400 TTL_PERIOD_INVALID The specified TTL period is invalid.

Gogram Example

// MessagesSetDefaultHistoryTtl - positional arguments
result, err := client.MessagesSetDefaultHistoryTtl(0)
if err != nil {
    // handle error
}
// result is *tg.Bool