Layer 220
AccountSetAccountTtl
Set account self-destruction period
method
Users
account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Ttl | AccountDaysTTL | Time to live in days |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | TTL_DAYS_INVALID | The provided TTL is invalid. |
Gogram Example
// AccountSetAccountTtl - positional arguments result, err := client.AccountSetAccountTtl(&tg.AccountDaysTtl{}) if err != nil { // handle error } // result is *tg.Bool