Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
AI Integration Quick Reference
Overview
Flagging messages allows users to report inappropriate content to moderators or administrators. When a message is flagged, it appears in the CometChat Dashboard under Moderation > Flagged Messages for review.For a complete understanding of how flagged messages are reviewed and managed, see the Flagged Messages documentation.
Prerequisites
| Requirement | Location |
|---|---|
| Enable Moderation | CometChat Dashboard > App Settings |
| Configure Flag Reasons | Dashboard > Moderation > Advanced Settings |
How It Works
Get Flag Reasons
Before flagging a message, retrieve the list of available flag reasons configured in your Dashboard:Flag a Message
UseflagMessage() with the message ID and a FlagDetail object:
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| messageId | Int | Yes | ID of the BaseMessage to flag |
| reasonId | String | Yes | ID from getFlagReasons() |
| remark | String | No | Additional context |
Complete Example
Next Steps
AI Moderation
Automate content moderation with AI
Delete a Message
Remove messages from conversations
Receive Messages
Listen for incoming messages in real time
Send Messages
Send text, media, and custom messages