Layer 220
MessagesSetDefaultHistoryTtl
Changes the default value of the Time-To-Live setting, applied to all new chats.
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
BoolPossible 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