api.getStorageStatistics()
Returns storage usage statistics. Can be called before authorization
Parameters
GetStorageStatisticsParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
chatLimit | number | The maximum number of chats with the largest storage usage for which separate statistics need to be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0 |
Returns
ApiResponse interface:interface ApiResponse {
_: 'getStorageStatistics' | 'error'
airgram: Airgram
request: {
method: 'getStorageStatistics'
params: GetStorageStatisticsParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}