Airgram

Guides
/
/
Methods

api.reportChatPhoto()

Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported

Parameters ReportChatPhotoParams:

NameTypeDescription
chatIdnumber Chat identifier
fileIdnumber Identifier of the photo to report. Only full photos from chatPhoto can be reported
reason The reason for reporting the chat photo
textstring Additional report details; 0-1024 characters
Returns ApiResponse interface:
interface ApiResponse {
  _: 'reportChatPhoto' | 'error'
  airgram: Airgram
  request: {
    method: 'reportChatPhoto'
    params: ReportChatPhotoParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}