Airgram

Guides
/
/
Methods

api.setInactiveSessionTtl()

Changes the period of inactivity after which sessions will automatically be terminated

Parameters SetInactiveSessionTtlParams:

NameTypeDescription
inactiveSessionTtlDaysnumber New number of days of inactivity before sessions will be automatically terminated; 1-366 days
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setInactiveSessionTtl' | 'error'
  airgram: Airgram
  request: {
    method: 'setInactiveSessionTtl'
    params: SetInactiveSessionTtlParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}