Airgram

Guides
/
/
Methods

api.setAccountTtl()

Changes the period of inactivity after which the account of the current user will automatically be deleted

Parameters SetAccountTtlParams:

NameTypeDescription
ttl New account TTL
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setAccountTtl' | 'error'
  airgram: Airgram
  request: {
    method: 'setAccountTtl'
    params: SetAccountTtlParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}