Layer 220
method Users
account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;

Parameters

Name Type Description
Ttl AccountDaysTTL Time to live in days

Returns

Bool

Possible 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