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
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Chat identifier |
isDark | boolean | 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>
}