Airgram

Guides
/
/
Methods

api.reportChat()

Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported

Parameters ReportChatParams:

NameTypeDescription
chatIdnumber Chat identifier
messageIdsnumber[] Identifiers of reported messages, if any
reason The reason for reporting the chat
textstring Additional report details; 0-1024 characters
Returns ApiResponse interface:
interface ApiResponse {
  _: 'reportChat' | 'error'
  airgram: Airgram
  request: {
    method: 'reportChat'
    params: ReportChatParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}