Airgram

Guides
/
/
Methods

api.getChatStatistics()

Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true

Parameters GetChatStatisticsParams:

NameTypeDescription
chatIdnumber Chat identifier
isDarkboolean Pass true if a dark theme is used by the application
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getChatStatistics' | 'error'
  airgram: Airgram
  request: {
    method: 'getChatStatistics'
    params: GetChatStatisticsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}