api.setInactiveSessionTtl()
Changes the period of inactivity after which sessions will automatically be terminated
Parameters
SetInactiveSessionTtlParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
inactiveSessionTtlDays | number | 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>
}