Airgram

Guides
/
/
Methods

api.addNetworkStatistics()

Adds the specified data to data usage statistics. Can be called before authorization

Parameters AddNetworkStatisticsParams:

NameTypeDescription
entry The network statistics entry with the data to be added to statistics
Returns ApiResponse interface:
interface ApiResponse {
  _: 'addNetworkStatistics' | 'error'
  airgram: Airgram
  request: {
    method: 'addNetworkStatistics'
    params: AddNetworkStatisticsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}