Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ai-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Because CometChat AI Agents are model-agnostic, you can swap providers or upgrad
</p>
<div className="mt-4 flex flex-wrap gap-3">
<a
href="/docs/ai-agents/agent-builder/overview"
href="/ai-agents/agent-builder/overview"
className="inline-flex items-center justify-center rounded-full bg-gray-900 text-white px-5 py-2 text-sm font-medium hover:bg-gray-800 transition"
>
AI Agent Builder
Expand All @@ -84,7 +84,7 @@ Because CometChat AI Agents are model-agnostic, you can swap providers or upgrad
</p>
<div className="mt-4 flex flex-wrap gap-3">
<a
href="/docs/ai-agents/ag-ui"
href="/ai-agents/ag-ui"
className="inline-flex items-center justify-center rounded-full bg-gray-900 text-white px-5 py-2 text-sm font-medium hover:bg-gray-800 transition"
>
Connect Third-Party Agent
Expand All @@ -100,8 +100,8 @@ Because CometChat AI Agents are model-agnostic, you can swap providers or upgrad
<p className="text-gray-600 dark:text-gray-300">Create and manage frontend actions and tools to enhance your agent’s capabilities.</p>

<div className="flex flex-wrap gap-3 mt-4">
<a href="/docs/ai-agents/actions" className="inline-flex items-center gap-1 px-4 py-2 rounded-md border border-gray-300 dark:border-gray-600 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800" target="_blank">Get Started with Actions ↗</a>
<a href="/docs/ai-agents/tools" className="inline-flex items-center gap-1 px-4 py-2 rounded-md border border-gray-300 dark:border-gray-600 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800" target="_blank">Get Started with Tools ↗</a>
<a href="/ai-agents/actions" className="inline-flex items-center gap-1 px-4 py-2 rounded-md border border-gray-300 dark:border-gray-600 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800" target="_blank">Get Started with Actions ↗</a>
<a href="/ai-agents/tools" className="inline-flex items-center gap-1 px-4 py-2 rounded-md border border-gray-300 dark:border-gray-600 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800" target="_blank">Get Started with Tools ↗</a>
</div>
<p className="text-gray-500 text-sm mt-3">Actions: trigger UI & workflows. Tools: structured capabilities the agent can call.</p>
</Step> */}
Expand Down
2 changes: 1 addition & 1 deletion ai-agents/agent-builder/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Overview

Agent Builder provides the capability to create, configure, and customize AI agents directly within CometChat. It supports selecting models, integrating ready-to-use tools, APIs, and MCPs, and deploying agents without relying on any external management or orchestration platforms.

Check warning on line 16 in ai-agents/agent-builder/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ai-agents/agent-builder/overview.mdx#L16

Did you really mean 'MCPs'?

<Note>
**Where AI Agents respond.** Agents created in Agent Builder respond only in one-on-one conversations between an end user and the agent user. They do not respond when added to a group, even as a member or owner. If your use case requires an agent in group conversations, share your requirements on [feedback.cometchat.com](https://feedback.cometchat.com).
Expand Down Expand Up @@ -49,7 +49,7 @@

<Step title="Configure the agent" description="Set up capabilities.">
<p className="text-gray-600 dark:text-gray-300">
After creation, configure instructions, tools, and MCPs from the left-hand tabs. Detailed guidance lives in the <a href="/docs/ai-agents/agent-builder/instructions">Instructions</a>, <a href="/docs/ai-agents/agent-builder/tools/overview">Tools</a>, and <a href="/docs/ai-agents/agent-builder/mcp/overview">MCP</a> sections.
After creation, configure instructions, tools, and MCPs from the left-hand tabs. Detailed guidance lives in the <a href="/ai-agents/agent-builder/instructions">Instructions</a>, <a href="/ai-agents/agent-builder/tools/overview">Tools</a>, and <a href="/ai-agents/agent-builder/mcp/overview">MCP</a> sections.

Check warning on line 52 in ai-agents/agent-builder/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ai-agents/agent-builder/overview.mdx#L52

Did you really mean 'MCPs'?
</p>
</Step>

Expand All @@ -61,7 +61,7 @@
- Instructions define how your agent behaves, what it knows, and how it should respond. Use them to set tone, outline guardrails, and describe hand-off rules.
- The instructions editor supports `@` mentions so you can reference specific tools and MCP resources inline—this gives the agent unambiguous guidance about when to invoke each capability.

### Tools and MCPs

Check warning on line 64 in ai-agents/agent-builder/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ai-agents/agent-builder/overview.mdx#L64

Did you really mean 'MCPs'?
- Attach tools for deterministic actions (custom APIs, Google Suite, or other integrations) and link MCP endpoints for richer context.
- You can embed any of these capabilities directly inside instructions using the `@` menu, ensuring the agent knows exactly when and how to rely on them.

Expand Down
2 changes: 1 addition & 1 deletion articles/migration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
3. [Make the API changes](/articles/migration-guide#rest-api-changes-) (Applicable if you are using CometChat Rest APIs)
4. Mark the migration process as complete in the dashboard. We recommend 30 days to complete the migration process

After you begin the migration process, there's a window of time during which your production application will be compatible with both v2 and v3 SDKs and APIs.

Check warning on line 15 in articles/migration-guide.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

articles/migration-guide.mdx#L15

Did you really mean 'SDKs'?

During this phase, real-time events (receipts, typing indicator, live reactions, transient messages, and user presence indicators) won’t work cross-version. This means that users with clients using the old v2 SDK won’t get real-time events from users on clients supporting the new v3 SDK, and vice-versa. However, receipts and presence information are still updated in our database, so they'll still be available when fetched via the API.

After you finish making any required changes to your application and mark the migration as complete, your app will only be compatible with v3 SDKs and APIs. Provided all clients have been updated to v3, all real-time events will be supported once more.

Check warning on line 19 in articles/migration-guide.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

articles/migration-guide.mdx#L19

Did you really mean 'SDKs'?

Marking the migration as finished is left to your discretion; however, we strongly recommend that after initiating migration, you complete your changes and finish the migration within **30 days**.

Expand Down Expand Up @@ -47,7 +47,7 @@

### Chat Widgets

### UI Kits and SDKs

Check warning on line 50 in articles/migration-guide.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

articles/migration-guide.mdx#L50

Did you really mean 'SDKs'?

JavaScript: [Upgrading from v2](/sdk/javascript/3.0/resources-upgrading-from-v2)

Expand All @@ -57,7 +57,7 @@

React Native: [Upgrading from v2](/sdk/react-native/3.0/resources-upgrading-from-v2)

Ionic Cordova Capacitor: [Upgrading from v2](/sdk/ionic-legacy/3.0/resources-upgrading-from-v2)
Ionic Cordova Capacitor: [Upgrading from v2](https://assets.cometchat.io/legacy-docs/sdk/ionic-legacy/3.0/resources-upgrading-from-v2.html)

Check warning on line 60 in articles/migration-guide.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

articles/migration-guide.mdx#L60

Did you really mean 'Cordova'?

_Note: if you mark your migration as complete without following the specified upgrade guide fully, your application may become stuck in a broken state, with out-of-sync SDK / API and application versions unable to communicate properly. If this happens, contact support._

Expand Down Expand Up @@ -96,7 +96,7 @@

3. How much effort does it take?

4. - Per app just the code changes should not take more than 30 mins.

Check warning on line 99 in articles/migration-guide.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

articles/migration-guide.mdx#L99

Did you really mean 'mins'?

5. How can I ask for help if I am stuck at some stage?
- You can reach out to our customer support team for such queries.
Expand Down
2 changes: 1 addition & 1 deletion calls/flutter/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- Call buttons with one-tap calling
- Call logs with history

👉 [Flutter UI Kit Calling Integration](/ui-kit/flutter/calling-integration)
👉 [Flutter UI Kit Calling Integration](/ui-kit/flutter/v5/calling-integration)

Use this Calls SDK directly only if you need custom call UI or advanced control.
</Info>
Expand Down Expand Up @@ -74,7 +74,7 @@

## Initialize CometChat Calls

The `init()` method initializes the SDK with your app credentials. Call this method once when your application starts, typically in your `main()` function or root widget's `initState()`.

Check warning on line 77 in calls/flutter/setup.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/flutter/setup.mdx#L77

Did you really mean 'widget's'?

### CallAppSettingBuilder

Expand Down
2 changes: 1 addition & 1 deletion chat-call.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
mode: "custom"
title: "Chat & Messaging"
description: "Add real-time chat, voice & video calling to your apps in minutes. Choose your path: UI Kits, SDKs, or Widgets."

Check warning on line 4 in chat-call.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

chat-call.mdx#L4

Did you really mean 'SDKs'?
canonical: "https://cometchat.com/docs"
---

Expand Down Expand Up @@ -57,7 +57,7 @@

<div className="mb-12">
<h2 className="text-gray-700 dark:text-white text-2xl font-semibold">Add CometChat to Your Frontend</h2>
<p className="text-gray-600 dark:text-gray-300">Use our pre-built UI kits or SDKs to add chat to your website or mobile app instantly.</p>

Check warning on line 60 in chat-call.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

chat-call.mdx#L60

Did you really mean 'SDKs'?
</div>

{/* UI Kit Builder Section */}
Expand Down Expand Up @@ -167,7 +167,7 @@
</CardGroup>
</div>

{/* SDKs Section */}

Check warning on line 170 in chat-call.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

chat-call.mdx#L170

Did you really mean 'SDKs'?

<div className="mb-12">
<h3 className="text-xl font-semibold text-gray-700 dark:text-white mb-4">
Expand Down Expand Up @@ -212,7 +212,7 @@
<Card title="iOS" icon={<img src="/docs/images/icons/swift.svg" alt="iOS" />} href="/sdk/ios/overview" horizontal />
<Card title="Android" icon={<img src="/docs/images/icons/android.svg" alt="Android" />} href="/sdk/android/overview" horizontal />
<Card title="Flutter" icon={<img src="/docs/images/icons/flutter.svg" alt="Flutter" />} href="/sdk/flutter/overview" horizontal />
<Card title="Ionic" icon={<img src="/docs/images/icons/ionic.svg" alt="Ionic" />} href="/sdk/ionic/overview" horizontal />
<Card title="Ionic" icon={<img src="/docs/images/icons/ionic.svg" alt="Ionic" />} href="/sdk/ionic-legacy/overview" horizontal />
<Card title="Unreal Engine" icon={<img src="/docs/images/icons/unreal.svg" alt="Unreal Engine" />} href="/sdk/unreal/overview" horizontal />
</CardGroup>
</div>
Expand Down Expand Up @@ -259,7 +259,7 @@

<CardGroup cols={2}>
<Card
title="HTML / Bootstrap / jQuery"

Check warning on line 262 in chat-call.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

chat-call.mdx#L262

Did you really mean 'jQuery'?
icon={<img src="/docs/images/icons/html5.svg" alt="HTML / Bootstrap / jQuery" />}
href="/widget/html/integration"
horizontal
Expand Down
6 changes: 3 additions & 3 deletions fundamentals/extensions-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ Extensions that help you add support to your app. *Recommended for advanced apps
Extensions that help alert users of new messages. *Recommended for all apps.*

[Push Notification](/notifications/web-push-notifications)\
[Email Notification](/notifications/email-notifications-extension-legacy)\
[SMS Notification](/notifications/sms-notifications-extension-legacy)
[Email Notification](https://assets.cometchat.io/legacy-docs/notifications/email-notifications-extension-legacy.html)\
[SMS Notification](https://assets.cometchat.io/legacy-docs/notifications/sms-notifications-extension-legacy.html)

### Moderation

*Extensions that help you to build a safe messaging environment.* *Recommended for live streaming and event apps.*

[Legacy Moderation Extensions](/moderation/legacy-extensions)
[Legacy Moderation Extensions](https://assets.cometchat.io/legacy-docs/moderation/legacy-extensions.html)
2 changes: 1 addition & 1 deletion fundamentals/moderation-extensions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ CometChat Moderation features come in two variants:

1. The modern rule based [Moderation](/moderation/overview) platform.

2. The [Legacy Moderation Extensions](/moderation/legacy-extensions) based on CometChat Extensions.
2. The [Legacy Moderation Extensions](https://assets.cometchat.io/legacy-docs/moderation/legacy-extensions.html) based on CometChat Extensions.

For the best experience, we recommend using the rule based [Moderation](/moderation/overview) platform.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion moderation/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The Moderation feature provides a comprehensive suite of capabilities designed to manage and enforce message moderation rules across various types of messages, ensuring your platform remains safe and compliant for all users.

<Note>
**Using legacy moderation extensions?** Disable legacy extensions (Profanity Filter, Data Masking, Image Moderation) from the [Extensions page](/moderation/legacy-extensions) before creating moderation rules. Running both will cause performance issues and message delays as each message gets processed twice.
**Using legacy moderation extensions?** Disable legacy extensions (Profanity Filter, Data Masking, Image Moderation) from the [Extensions page](https://assets.cometchat.io/legacy-docs/moderation/legacy-extensions.html) before creating moderation rules. Running both will cause performance issues and message delays as each message gets processed twice.
</Note>

## Key Benefits
Expand Down Expand Up @@ -67,9 +67,9 @@
<Card title="Angular" icon={<img src="/docs/images/icons/angular.svg" alt="Angular" />} href="/ui-kit/angular/core-features#moderation" />
</CardGroup>

### Chat SDKs

Check warning on line 70 in moderation/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

moderation/overview.mdx#L70

Did you really mean 'SDKs'?

Implement message flagging directly using CometChat Chat SDKs:

Check warning on line 72 in moderation/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

moderation/overview.mdx#L72

Did you really mean 'SDKs'?

<CardGroup cols={3}>
<Card title="JavaScript" icon={<img src="/docs/images/icons/js.svg" alt="JavaScript" />} href="/sdk/javascript/ai-moderation" />
Expand Down Expand Up @@ -147,22 +147,22 @@
| **Explicit or Sexual Content** | Identifies nudity, explicit sexual content, or suggestive imagery |
| **Hate or Harassment** | Detects hate symbols, harassment, or extremist imagery |
| **Fraud or Scam Indicators** | Flags manipulated or fraudulent images, such as fake IDs |
| **Malware & Virus Scanner** | Scans image files for viruses, malware, trojans, worms, and ransomware |

Check warning on line 150 in moderation/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

moderation/overview.mdx#L150

Did you really mean 'trojans'?
</Tab>
<Tab title="Video Rules">
| Name | Description |
|------|-------------|
| **Unsafe & Prohibited Content** | Detects unsafe or prohibited content in video files |
| **Malware & Virus Scanner** | Scans video files for viruses, malware, trojans, worms, and ransomware |

Check warning on line 156 in moderation/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

moderation/overview.mdx#L156

Did you really mean 'trojans'?
</Tab>
<Tab title="Audio Rules">
| Name | Description |
|------|-------------|
| **Malware & Virus Scanner** | Scans audio files for viruses, malware, trojans, worms, and ransomware |

Check warning on line 161 in moderation/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

moderation/overview.mdx#L161

Did you really mean 'trojans'?
</Tab>
<Tab title="File Rules">
| Name | Description |
|------|-------------|
| **Malware & Virus Scanner** | Scans all file attachments (documents, archives, etc.) for viruses, malware, trojans, worms, and ransomware |

Check warning on line 166 in moderation/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

moderation/overview.mdx#L166

Did you really mean 'trojans'?
</Tab>
</Tabs>
6 changes: 3 additions & 3 deletions notifications/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ Notifications play a crucial role in alerting users to activity within conversat
Deliver instant updates and improve user engagement. CometChat has the following offerings.

* [Push Notifications](/notifications/push-overview)
* [Push Notifications extension (Legacy)](/notifications/push-notifications-extension-legacy)
* [Push Notifications extension (Legacy)](https://assets.cometchat.io/legacy-docs/notifications/push-notifications-extension-legacy.html)

### Email Notifications

Dispatch updates at intervals to re-engage users with extended absence using Emails.

* [Email Notifications](/notifications/email-overview)
* [Email Notifications extension (Legacy)](/notifications/email-notifications-extension-legacy).
* [Email Notifications extension (Legacy)](https://assets.cometchat.io/legacy-docs/notifications/email-notifications-extension-legacy.html).

### SMS Notifications

Dispatch updates at intervals to re-engage users with extended absence using SMS.

* [SMS Notifications](/notifications/sms-overview)
* [SMS Notifications extension (Legacy)](/notifications/sms-notifications-extension-legacy).
* [SMS Notifications extension (Legacy)](https://assets.cometchat.io/legacy-docs/notifications/sms-notifications-extension-legacy.html).
6 changes: 3 additions & 3 deletions sdk/android/2.0/extensions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Extensions pickup where our core leaves. They help extend the functionality of C
Extensions that help alert users of new messages. *Recommended for all apps.*

[Push Notification](/notifications/android-push-notifications)\
[Email Notification](/notifications/email-notifications-extension-legacy)\
[SMS Notification](/notifications/sms-notifications-extension-legacy)
[Email Notification](https://assets.cometchat.io/legacy-docs/notifications/email-notifications-extension-legacy.html)\
[SMS Notification](https://assets.cometchat.io/legacy-docs/notifications/sms-notifications-extension-legacy.html)

### User Experience

Expand Down Expand Up @@ -50,4 +50,4 @@ Extensions that help increase user engagement. *Recommended for advanced apps.*

*Extensions that help you to build a safe messaging environment.* *Recommended for live streaming and event apps.*

[Legacy Moderation Extensions](/moderation/legacy-extensions)
[Legacy Moderation Extensions](https://assets.cometchat.io/legacy-docs/moderation/legacy-extensions.html)
2 changes: 1 addition & 1 deletion sdk/android/ai-chatbots-overview.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "AI Chatbots"
sidebarTitle: "AI Chatbots"

Check warning on line 3 in sdk/android/ai-chatbots-overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/android/ai-chatbots-overview.mdx#L3

Did you really mean 'Chatbots'?
description: "Implement custom AI chatbots for automated conversations in your Android application"

Check warning on line 4 in sdk/android/ai-chatbots-overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/android/ai-chatbots-overview.mdx#L4

Did you really mean 'chatbots'?
url: "/ai-chatbots/overview"
url: "https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html"
---

AI Chatbots enable automated conversations within your application. They can process user messages and respond with contextually relevant information. For a broader introduction, see the [AI Chatbots section](/ai-chatbots).

Check warning on line 8 in sdk/android/ai-chatbots-overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/android/ai-chatbots-overview.mdx#L8

Did you really mean 'Chatbots'?

For message payload structures (AIAssistantMessage, AIToolArgumentMessage, AIToolResultMessage), see the [AI Agents](/sdk/android/ai-agents#agentic-message-payload-structures) page.
2 changes: 1 addition & 1 deletion sdk/android/v5/ai-chatbots-overview.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
title: "AI"
url: "/ai-chatbots/overview"
url: "https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html"
---
2 changes: 1 addition & 1 deletion sdk/flutter/ai-chatbots-overview.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Bots"
description: "Build AI chatbots for Flutter apps with CometChat to automate replies, assist users, and connect bot workflows to chat."
url: "/ai-chatbots/overview"
url: "https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html"
---
4 changes: 2 additions & 2 deletions sdk/flutter/threaded-messages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Send Message in a Thread

As mentioned in the [Send a Message](send-message) section, you can send a message to a User or a Group by mentioning the receiver (uid/guid) and `receiverType`(user/group).
As mentioned in the [Send a Message](/sdk/flutter/send-message) section, you can send a message to a User or a Group by mentioning the receiver (uid/guid) and `receiverType`(user/group).

A message can be categorized as:

Expand All @@ -29,20 +29,20 @@
<Tab title="Dart">
```dart
String receiverID = "UID";
String messagesText = "Hello";

Check warning on line 32 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L32

Did you really mean 'messagesText'?
String receiverType = CometChatConversationType.user;

Check warning on line 33 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L33

Did you really mean 'receiverType'?
String type = CometChatMessageType.text;

TextMessage textMessage = TextMessage(

Check warning on line 36 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L36

Did you really mean 'textMessage'?
text: messagesText,

Check warning on line 37 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L37

Did you really mean 'messagesText'?
receiverUid: receiverID,

Check warning on line 38 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L38

Did you really mean 'receiverUid'?
receiverType: receiverType,

Check warning on line 39 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L39

Did you really mean 'receiverType'?

Check warning on line 39 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L39

Did you really mean 'receiverType'?
type: type);
textMessage.parentMessageId = 103

CometChat.sendMessage(textMessage,onSuccess: (TextMessage message) {
debugPrint("Message sent successfully: $message");
}, onError: (CometChatException e) {

Check warning on line 45 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L45

Did you really mean 'onError'?
debugPrint("Message sending failed with exception: ${e.message}");
});
```
Expand All @@ -56,7 +56,7 @@

### Receiving Real-Time Messages

The procedure to receive real-time messages is exactly the same as mentioned in the [Receive Messages](receive-messages). This can be achieved using the `MessageListener` class provided by the SDK.
The procedure to receive real-time messages is exactly the same as mentioned in the [Receive Messages](/sdk/flutter/receive-messages). This can be achieved using the `MessageListener` class provided by the SDK.
To add a MessageListener, you can use the `addMessageListener()` method of the SDK.
The only thing that needs to be checked is if the received message belongs to the active thread. This can be done using `parentMessageId` field of the message object.

Expand Down Expand Up @@ -99,7 +99,7 @@

The `MessageRequestBuilder` builds the `MessageRequest` object using the following functions:

1. parentMessageId: Takes the parentId of the message as argument whose thread needs to be requested.

Check warning on line 102 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L102

Did you really mean 'parentId'?
2. build(): returns the MessageRequest object.

Once you have the `MessagesRequest` object, you can call the `fetchPrevious()` method to get the latest messages in the thread. In one iteration, a maximum of 100 messages can be fetched. If you wish to fetch the next set of messages, you need to call the fetchPrevious() method again on the same object.
Expand All @@ -109,14 +109,14 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 112 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L112

Did you really mean 'messageRequest'?
..uid = UID
..parentMessageId = 103
..limit = 50).build();

messageRequest.fetchPrevious(onSuccess: (List<BaseMessage> list) {
debugPrint("Message fetching Successful");
}, onError: (CometChatException e) {

Check warning on line 119 in sdk/flutter/threaded-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/threaded-messages.mdx#L119

Did you really mean 'onError'?
debugPrint("Message fetching failed with exception: ${e.message}");
});
```
Expand Down
6 changes: 3 additions & 3 deletions sdk/flutter/v4/additional-message-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 99 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L99

Did you really mean 'messageRequest'?
..uid = UID
..limit = 30).build();
```
Expand Down Expand Up @@ -134,7 +134,7 @@
<Tab title="Dart">
```dart
String GUID = "cometchat-uid-1";
MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 137 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L137

Did you really mean 'messageRequest'?
..guid = GUID
..limit = 50).build();
```
Expand All @@ -158,7 +158,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 161 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L161

Did you really mean 'messageRequest'?
..uid = UID
..messageId = 50
..limit = 50).build();
Expand Down Expand Up @@ -204,7 +204,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 207 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L207

Did you really mean 'messageRequest'?
..uid = UID
..unread = true
..limit = 50).build();
Expand Down Expand Up @@ -250,7 +250,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 253 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L253

Did you really mean 'messageRequest'?
..uid = UID
..updatedAfter = DateTime.now()
..limit = 50).build();
Expand Down Expand Up @@ -288,7 +288,7 @@

*In other words, how do I fetch messages belonging to multiple categories*

We recommend before trying this, you refer to the [Message structure and hierarchy guide](/sdk/flutter/message-structure-and-hierarchy) to get familiar with the various categories of messages.
We recommend before trying this, you refer to the [Message structure and hierarchy guide](/sdk/flutter/v4/message-structure-and-hierarchy) to get familiar with the various categories of messages.

Use the `categories` property with a list of category names to filter by message category.

Expand All @@ -300,7 +300,7 @@
categories.add("message");
categories.add("custom");

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 303 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L303

Did you really mean 'messageRequest'?
..uid = UID
..categories = categories
..limit = 50).build();
Expand All @@ -316,7 +316,7 @@

*In other words, how do I fetch messages belonging to multiple types*

We recommend you refer to the [Message structure and hierarchy guide](/sdk/flutter/message-structure-and-hierarchy) to get familiar with the various types of messages before trying this out.
We recommend you refer to the [Message structure and hierarchy guide](/sdk/flutter/v4/message-structure-and-hierarchy) to get familiar with the various types of messages before trying this out.

Use the `types` property with a list of type names to filter by message type.

Expand Down Expand Up @@ -351,7 +351,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 354 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L354

Did you really mean 'messageRequest'?
..uid = UID
..parentMessageId = 103
..limit = 50).build();
Expand Down Expand Up @@ -395,7 +395,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 398 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L398

Did you really mean 'messageRequest'?
..uid = UID
..hideDeleted = true
..limit = 50).build();
Expand Down Expand Up @@ -440,7 +440,7 @@
tags.add("tag1");
tags.add("tag2");

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 443 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L443

Did you really mean 'messageRequest'?
..uid = UID
..tags = tags
..limit = 50).build();
Expand Down Expand Up @@ -494,7 +494,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 497 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L497

Did you really mean 'messageRequest'?
..uid = UID
..hasLinks = true
..limit = 50).build();
Expand Down Expand Up @@ -548,7 +548,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 551 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L551

Did you really mean 'messageRequest'?
..uid = UID
..hasReactions = true
..limit = 50).build();
Expand Down Expand Up @@ -589,7 +589,7 @@

*In other words, as a logged-in user, how do I fetch messages that mention specific users?*

Use the `mentionedUids` property with a list of UIDs to fetch messages that mention specific users.

Check warning on line 592 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L592

Did you really mean 'UIDs'?

<Note>

Expand All @@ -601,9 +601,9 @@
<Tab title="Dart">
```dart
String UID = "cometchat-uid-1";
List<String> mentionedUIDs = [];

Check warning on line 604 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L604

Did you really mean 'mentionedUIDs'?
mentionedUIDs.add("cometchat-uid-1");
MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 606 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L606

Did you really mean 'messageRequest'?
..uid = UID
..mentionedUids = mentionedUIDs
..limit = 50).build();
Expand All @@ -630,7 +630,7 @@
```dart
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 633 in sdk/flutter/v4/additional-message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/additional-message-filtering.mdx#L633

Did you really mean 'messageRequest'?
..uid = UID
..attachmentTypes = ["image", "video"]
..limit = 50).build();
Expand All @@ -651,7 +651,7 @@
<Card title="Retrieve Conversations" icon="comments" href="/sdk/flutter/retrieve-conversations">
Fetch and display conversation lists with filtering options
</Card>
<Card title="Message Structure" icon="sitemap" href="/sdk/flutter/message-structure-and-hierarchy">
<Card title="Message Structure" icon="sitemap" href="/sdk/flutter/v4/message-structure-and-hierarchy">
Understand message categories, types, and hierarchy
</Card>
<Card title="Threaded Messages" icon="layer-group" href="/sdk/flutter/threaded-messages">
Expand Down
2 changes: 1 addition & 1 deletion sdk/flutter/v4/ai-chatbots-overview.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: "Bots"
sidebarTitle: "AI Bots"
description: "Configure AI-powered chatbots to provide automated assistance and maintain conversational momentum in your Flutter app."

Check warning on line 4 in sdk/flutter/v4/ai-chatbots-overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/ai-chatbots-overview.mdx#L4

Did you really mean 'chatbots'?
url: "/ai-chatbots/overview"
url: "https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html"
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -26,7 +26,7 @@

</Accordion>

AI Bots provide automated assistance to users seeking guidance or insights. Configure intelligent chatbots through the CometChat Dashboard to maintain conversational momentum in your Flutter application.

Check warning on line 29 in sdk/flutter/v4/ai-chatbots-overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/ai-chatbots-overview.mdx#L29

Did you really mean 'chatbots'?

<Note>
**Available via:** [Dashboard](https://app.cometchat.com) | [REST
Expand Down
2 changes: 1 addition & 1 deletion sdk/flutter/v4/best-practices.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
description: "Recommended patterns and practices for building with the CometChat Flutter SDK."
---

Follow these best practices to build reliable, performant, and secure applications with the CometChat Flutter SDK. Organized by topic — jump to what's relevant for your current work.

Check warning on line 7 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L7

Did you really mean 'performant'?

## Initialization & Authentication

| Practice | Description |
|----------|-------------|
| Initialize once at startup | Call `CometChat.init()` in your `main()` or root widget's `initState()`. It only needs to be called once per session. |

Check warning on line 13 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L13

Did you really mean 'widget's'?
| Use environment variables | Store App ID, Region, and Auth Key in a config file or environment variables rather than hardcoding them. |

Check warning on line 14 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L14

Did you really mean 'hardcoding'?
| Check for existing sessions | Before calling `login()`, use `CometChat.getLoggedInUser()` to check if a session already exists. |
| Use Auth Tokens in production | Auth Keys are for development only. Generate Auth Tokens server-side using the [REST API](https://api-explorer.cometchat.com/reference/create-authtoken). |
| Handle token expiry | Implement a mechanism to detect login failures due to expired tokens. Use the [Login Listener](/sdk/flutter/authentication-overview#login-listener) to detect session changes. |
Expand All @@ -22,7 +22,7 @@
| Practice | Description |
|----------|-------------|
| Use unique listener IDs | Use descriptive IDs like `"MESSAGE_LISTENER_CHAT_SCREEN"` to avoid accidental overwrites. |
| Register early, remove on cleanup | Register listeners after `login()`. Remove them in your widget's `dispose()` method to prevent memory leaks. |

Check warning on line 25 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L25

Did you really mean 'widget's'?
| Keep callbacks lightweight | Avoid heavy processing inside listener callbacks. Use `setState()` or dispatch events to your state management layer. |
| Use specific listeners | Only register the listener types you need. Don't register a `GroupListener` if your page only handles messages. |

Expand Down Expand Up @@ -71,7 +71,7 @@

| Practice | Description |
|----------|-------------|
| Debounce typing events | Don't call `startTyping()` on every keystroke — debounce to ~300ms intervals. |

Check warning on line 74 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L74

Did you really mean 'Debounce'?

Check warning on line 74 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L74

Did you really mean 'debounce'?
| Auto-stop typing | Call `endTyping()` after 3–5 seconds of inactivity or when the user sends a message. |

## Delivery & Read Receipts
Expand All @@ -86,10 +86,10 @@

| Practice | Description |
|----------|-------------|
| Use meaningful GUIDs | Choose descriptive, unique GUIDs (e.g., `"project-alpha-team"`). |

Check warning on line 89 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L89

Did you really mean 'GUIDs'?

Check warning on line 89 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L89

Did you really mean 'GUIDs'?
| Set group type carefully | Group type cannot be changed after creation. Choose between `public`, `password`, and `private`. |
| Add members at creation | Use `createGroupWithMembers()` to add initial members in a single API call. |
| Check hasJoined before joining | Avoid unnecessary API calls by checking the group's `hasJoined` property first. |

Check warning on line 92 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L92

Did you really mean 'hasJoined'?
| Transfer ownership before leaving | Owners must transfer ownership to another member before they can leave. |
| Use joinedOnly(true) | Filter to joined groups when building sidebars or group lists. |

Expand Down Expand Up @@ -128,12 +128,12 @@

| Practice | Description |
|----------|-------------|
| iOS Podfile configuration | Run `pod install` in the `ios/` directory after adding the SDK dependency. Set the minimum iOS deployment target as required. |

Check warning on line 131 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L131

Did you really mean 'Podfile'?
| Android minimum API level | Ensure `minSdkVersion` in `android/app/build.gradle` meets the SDK requirement. |
| Use `dispose()` for cleanup | Always remove listeners and cancel subscriptions in your widget's `dispose()` method. |

Check warning on line 133 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L133

Did you really mean 'widget's'?
| Use `debugPrint` for logging | Prefer `debugPrint()` over `print()` for SDK-related logging — it handles long strings and is stripped in release builds. |
| Handle platform exceptions | CometChat methods may throw `PlatformException` from native channels. Wrap calls in try/catch blocks. |
| State management integration | Dispatch SDK events to your state management layer (Provider, Bloc, Riverpod) rather than calling `setState()` directly in listener callbacks. |

Check warning on line 136 in sdk/flutter/v4/best-practices.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/best-practices.mdx#L136

Did you really mean 'Riverpod'?

## Upgrading from V3

Expand All @@ -149,7 +149,7 @@
## Next Steps

<CardGroup cols={2}>
<Card title="Troubleshooting" icon="wrench" href="/sdk/flutter/troubleshooting">
<Card title="Troubleshooting" icon="wrench" href="/sdk/flutter/v4/troubleshooting">
Common issues and solutions
</Card>
<Card title="Setup SDK" icon="gear" href="/sdk/flutter/setup">
Expand Down
8 changes: 4 additions & 4 deletions sdk/flutter/v4/error-codes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
| Code | Message |
|------|---------|
| `COMETCHAT_INITIALIZATION_NOT_DONE` | Please initialize CometChat before using the login method. |
| `USER_NOT_AUTHORISED` | The authToken of the user is not authorised. Please verify again. |

Check warning on line 62 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L62

Did you really mean 'authToken'?
| `AUTH_ERR_AUTH_TOKEN_NOT_FOUND` | The auth token does not exist. Please make sure you are logged in and have a valid auth token. |
| `LOGIN_IN_PROGRESS` | Please wait until the previous login request ends. |
| `WS_CONNECTION_FAIL` | WebSocket connection failed. |
Expand All @@ -86,8 +86,8 @@
|------|---------|
| `INVALID_RECEIVER_TYPE` | Receiver type can be `user` or `group`. |
| `REQUEST_IN_PROGRESS` | Request in progress. |
| `NOT_ENOUGH_PARAMETERS` | Timestamp, MessageId, or updatedAfter is required to use fetchNext(). |

Check warning on line 89 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L89

Did you really mean 'updatedAfter'?
| `INVALID_REASON_ID` | Invalid reasonId provided. |

Check warning on line 90 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L90

Did you really mean 'reasonId'?

## User Errors

Expand All @@ -111,7 +111,7 @@
| Code | Message |
|------|---------|
| `INVALID_CONVERSATION_TYPE` | Conversation type can be `user` or `group`. |
| `CONVERSATION_NOT_FOUND` | Conversation not found. Check the value of conversationWith and conversationType. |

Check warning on line 114 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L114

Did you really mean 'conversationWith'?

Check warning on line 114 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L114

Did you really mean 'conversationType'?

## Receipt Errors

Expand Down Expand Up @@ -152,8 +152,8 @@
|------|---------|
| `INVALID_PUSH_PLATFORM` | An invalid Push Platform was detected. Please submit a valid push platform to proceed. |
| `INVALID_FCM_TOKEN` | An invalid FCM token was detected. Please submit a valid token to proceed. |
| `INVALID_APNS_DEVICE_TOKEN` | An invalid APNs Device token was detected. Please submit a valid token to proceed. |

Check warning on line 155 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L155

Did you really mean 'APNs'?
| `INVALID_APNS_VOIP_TOKEN` | An invalid APNs VoIP token was detected. Please submit a valid token to proceed. |

Check warning on line 156 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L156

Did you really mean 'APNs'?

## Network & API Errors

Expand All @@ -161,7 +161,7 @@
|------|---------|
| `FAILED_TO_FETCH` | There is an unknown issue with the API request. Check your internet connection. |
| `TOO_MANY_REQUEST` | Too many requests. Wait before sending the next request. |
| `ERR_TOO_MANY_REQUESTS` | Rate limiting. See [Rate Limits](/sdk/flutter/rate-limits). |
| `ERR_TOO_MANY_REQUESTS` | Rate limiting. See [Rate Limits](/sdk/flutter/v4/rate-limits). |

## Validation Errors

Expand All @@ -180,9 +180,9 @@

| Code | Message |
|------|---------|
| `ERROR_INVALID_SESSIONID` | The provided sessionId cannot be null or empty. |

Check warning on line 183 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L183

Did you really mean 'sessionId'?
| `ERROR_INVALID_TYPE` | The provided type cannot be null or empty. |
| `ERROR_INVALID_GROUPLIST` | Grouplist cannot be null or empty. |

Check warning on line 185 in sdk/flutter/v4/error-codes.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/error-codes.mdx#L185

Did you really mean 'Grouplist'?

## General Errors

Expand Down Expand Up @@ -219,16 +219,16 @@
## Next Steps

<CardGroup cols={2}>
<Card title="Troubleshooting" icon="wrench" href="/sdk/flutter/troubleshooting">
<Card title="Troubleshooting" icon="wrench" href="/sdk/flutter/v4/troubleshooting">
Common issues and solutions
</Card>
<Card title="Rate Limits" icon="gauge-high" href="/sdk/flutter/rate-limits">
<Card title="Rate Limits" icon="gauge-high" href="/sdk/flutter/v4/rate-limits">
Understand and handle rate limits
</Card>
<Card title="Error Guide (REST API)" icon="triangle-exclamation" href="/articles/error-guide">
Complete server-side error code reference
</Card>
<Card title="Best Practices" icon="star" href="/sdk/flutter/best-practices">
<Card title="Best Practices" icon="star" href="/sdk/flutter/v4/best-practices">
Recommended patterns for error handling
</Card>
</CardGroup>
2 changes: 1 addition & 1 deletion sdk/flutter/v4/extensions-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ For detailed information on each extension, including configuration options and
<Card title="Webhooks" icon="webhook" href="/sdk/flutter/webhooks-overview">
Configure webhooks for real-time event notifications
</Card>
<Card title="Rate Limits" icon="gauge" href="/sdk/flutter/rate-limits">
<Card title="Rate Limits" icon="gauge" href="/sdk/flutter/v4/rate-limits">
Understand API rate limits and quotas
</Card>
<Card title="Real-Time Listeners" icon="tower-broadcast" href="/sdk/flutter/real-time-listeners">
Expand Down
2 changes: 1 addition & 1 deletion sdk/flutter/v4/group-add-members.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
|-----------|------|-------------|
| `guid` | `String` | The GUID of the group to add members to |
| `groupMembers` | `List<GroupMember>` | List of [GroupMember](/sdk/reference/entities#groupmember) objects (UID and scope required) |
| `onSuccess` | `Function(Map<String?, String?>)` | Callback with a map of UIDs to result status |

Check warning on line 51 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L51

Did you really mean 'UIDs'?
| `onError` | `Function(CometChatException)` | Callback triggered on failure |

In order to add members, you need to create an object of the `GroupMember` class. The `UID` and the `scope` of the `GroupMember` are mandatory.
Expand All @@ -57,20 +57,20 @@
<Tab title="Dart">
```dart
List<GroupMember> groupMembers = [];
GroupMember firstMember = GroupMember.fromUid(

Check warning on line 60 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L60

Did you really mean 'firstMember'?
scope: CometChatMemberScope.participant,
uid: "cometchat-uid-3",name: "name");

Check warning on line 62 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L62

Did you really mean 'uid'?
GroupMember secondMember = GroupMember.fromUid(scope: CometChatMemberScope.admin,

Check warning on line 63 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L63

Did you really mean 'secondMember'?
uid: "cometchat-uid-4",name: "name");

Check warning on line 64 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L64

Did you really mean 'uid'?

groupMembers = [firstMember, secondMember];

Check warning on line 66 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L66

Did you really mean 'firstMember'?

Check warning on line 66 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L66

Did you really mean 'secondMember'?

CometChat.addMembersToGroup( guid: conversationWith,

Check warning on line 68 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L68

Did you really mean 'guid'?

Check warning on line 68 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L68

Did you really mean 'conversationWith'?
groupMembers: groupMembers,

Check warning on line 69 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L69

Did you really mean 'groupMembers'?

Check warning on line 69 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L69

Did you really mean 'groupMembers'?
onSuccess: (Map<String?,String?> result) {

Check warning on line 70 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L70

Did you really mean 'onSuccess'?
debugPrint("Group Member added Successfully : $result");
},
onError: (CometChatException e) {

Check warning on line 73 in sdk/flutter/v4/group-add-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-add-members.mdx#L73

Did you really mean 'onError'?
debugPrint("Group Member addition failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -163,7 +163,7 @@
## Next Steps

<CardGroup cols={2}>
<Card title="Kick & Ban Members" icon="user-slash" href="/sdk/flutter/group-kick-ban-members">
<Card title="Kick & Ban Members" icon="user-slash" href="/sdk/flutter/v4/group-kick-ban-members">
Remove or ban members from a group
</Card>
<Card title="Change Member Scope" icon="user-shield" href="/sdk/flutter/group-change-member-scope">
Expand Down
2 changes: 1 addition & 1 deletion sdk/flutter/v4/group-change-member-scope.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
String GUID = "GUID";
String scope = CometChatMemberScope.admin;

CometChat.updateGroupMemberScope(guid: GUID, uid: UID, scope: scope,

Check warning on line 43 in sdk/flutter/v4/group-change-member-scope.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-change-member-scope.mdx#L43

Did you really mean 'uid'?
onSuccess: (String message) {

Check warning on line 44 in sdk/flutter/v4/group-change-member-scope.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-change-member-scope.mdx#L44

Did you really mean 'onSuccess'?
debugPrint("Group Member Scope Changed Successfully : $message");
},
onError: (CometChatException e) {

Check warning on line 47 in sdk/flutter/v4/group-change-member-scope.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/group-change-member-scope.mdx#L47

Did you really mean 'onError'?
debugPrint("Group Member Scope Change failed : ${e.message}");
});
```
Expand Down Expand Up @@ -139,7 +139,7 @@
<Card title="Transfer Group Ownership" icon="arrow-right-arrow-left" href="/sdk/flutter/transfer-group-ownership">
Transfer ownership of a group to another member
</Card>
<Card title="Kick & Ban Members" icon="user-slash" href="/sdk/flutter/group-kick-ban-members">
<Card title="Kick & Ban Members" icon="user-slash" href="/sdk/flutter/v4/group-kick-ban-members">
Remove or ban members from a group
</Card>
<Card title="Add Members" icon="user-plus" href="/sdk/flutter/group-add-members">
Expand Down
2 changes: 1 addition & 1 deletion sdk/flutter/v4/groups-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Groups let users converse together in a shared space. CometChat supports three g
- [Retrieve Groups](/sdk/flutter/retrieve-groups) — Fetch and filter the list of groups
- [Retrieve Group Members](/sdk/flutter/retrieve-group-members) — Get the member list for a group
- [Add Members](/sdk/flutter/group-add-members) — Add users to a group
- [Kick & Ban Members](/sdk/flutter/group-kick-ban-members) — Remove or ban members from a group
- [Kick & Ban Members](/sdk/flutter/v4/group-kick-ban-members) — Remove or ban members from a group
- [Change Member Scope](/sdk/flutter/group-change-member-scope) — Promote or demote members

---
Expand Down
2 changes: 1 addition & 1 deletion sdk/flutter/v4/interactive-messages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
| `allowSenderInteraction` | `bool` | Whether sender can interact with the message | No (default: `false`) |
| `interactionGoal` | `InteractionGoal` | Defines when the interaction is considered complete | No (default: `none`) |
| `tags` | `List<String>` | Tags associated with the message | No |
| `muid` | `String` | Unique message identifier for deduplication | No |

Check warning on line 65 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L65

Did you really mean 'deduplication'?
| `parentMessageId` | `int` | ID of the parent message (for threads) | No |
| `metadata` | `Map<String, dynamic>` | Custom metadata attached to the message | No |

Expand Down Expand Up @@ -132,9 +132,9 @@
]
},
],
"submitElement": {

Check warning on line 135 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L135

Did you really mean 'submitElement'?
"elementType": "button",
"elementId": "submitButton",

Check warning on line 137 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L137

Did you really mean 'submitButton'?
"buttonText": "Submit",
"disableAfterInteracted": false,
"action": {
Expand All @@ -146,25 +146,25 @@



InteractiveMessage interactiveMessage =

Check warning on line 149 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L149

'interactiveMessage' is repeated!

Check warning on line 149 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L149

Did you really mean 'interactiveMessage'?
InteractiveMessage(interactiveData: interactiveData,

Check warning on line 150 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L150

Did you really mean 'interactiveData'?
receiverUid: "cometchat-uid-3", //Replace this with receiver id

Check warning on line 151 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L151

Did you really mean 'receiverUid'?
type: "form",
receiverType: "user",//replace this with receiver type

Check warning on line 153 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L153

Did you really mean 'receiverType'?
allowSenderInteraction: true,
muid: DateTime.now().millisecondsSinceEpoch.toString(),

Check warning on line 155 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L155

Did you really mean 'muid'?
interactionGoal: InteractionGoal(

Check warning on line 156 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L156

Did you really mean 'interactionGoal'?
type: InteractionGoalType.none
)
);


CometChat.sendInteractiveMessage(interactiveMessage, onSuccess: (InteractiveMessage message){

Check warning on line 162 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L162

Did you really mean 'onSuccess'?

print(interactiveMessage);

}, onError: (CometChatException excep){

Check warning on line 166 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L166

Did you really mean 'onError'?

Check warning on line 166 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L166

Did you really mean 'excep'?
print(excep);

Check warning on line 167 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L167

Did you really mean 'excep'?
});
```

Expand Down Expand Up @@ -361,25 +361,25 @@
<Tabs>
<Tab title="Dart">
```dart
List<String> elementIds = ["name", "gender", "submitButton"];

Check warning on line 364 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L364

Did you really mean 'elementIds'?
InteractionGoal interactionGoal = InteractionGoal(

Check warning on line 365 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L365

'interactionGoal' is repeated!

Check warning on line 365 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L365

Did you really mean 'interactionGoal'?
type: InteractionGoalType.allOf,
elementIds: elementIds,
);

InteractiveMessage interactiveMessage = InteractiveMessage(

Check warning on line 370 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L370

Did you really mean 'interactiveMessage'?
interactiveData: interactiveData,

Check warning on line 371 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L371

Did you really mean 'interactiveData'?

Check warning on line 371 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L371

Did you really mean 'interactiveData'?
receiverUid: "cometchat-uid-3",

Check warning on line 372 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L372

Did you really mean 'receiverUid'?
type: "form",
receiverType: "user",

Check warning on line 374 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L374

Did you really mean 'receiverType'?
interactionGoal: interactionGoal,

Check warning on line 375 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L375

Did you really mean 'interactionGoal'?

Check warning on line 375 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L375

Did you really mean 'interactionGoal'?
);

CometChat.sendInteractiveMessage(interactiveMessage,
onSuccess: (InteractiveMessage message) {

Check warning on line 379 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L379

Did you really mean 'onSuccess'?
debugPrint("Interactive message sent successfully: $message");
},
onError: (CometChatException excep) {

Check warning on line 382 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L382

Did you really mean 'onError'?
debugPrint("Interactive message sending failed with error: ${excep.message}");
},
);
Expand Down Expand Up @@ -415,7 +415,7 @@
await CometChat.markAsInteracted(
messageId,
interactedElementId,
onSuccess: (String message) {

Check warning on line 418 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L418

Did you really mean 'onSuccess'?
// after success
},
onError: (CometChatException excep) {
Expand Down Expand Up @@ -538,11 +538,11 @@
<Tabs>
<Tab title="Dart">
```dart
InteractiveMessage interactiveMessage = InteractiveMessage(

Check warning on line 541 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L541

'interactiveMessage' is repeated!

Check warning on line 541 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L541

Did you really mean 'interactiveMessage'?
interactiveData: interactiveData,

Check warning on line 542 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L542

Did you really mean 'interactiveData'?

Check warning on line 542 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L542

Did you really mean 'interactiveData'?
receiverUid: "cometchat-uid-3",

Check warning on line 543 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L543

Did you really mean 'receiverUid'?
type: "form",
receiverType: "user",

Check warning on line 545 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L545

Did you really mean 'receiverType'?
allowSenderInteraction: true,
);

Expand All @@ -550,7 +550,7 @@
onSuccess: (InteractiveMessage message) {
debugPrint("Interactive message sent successfully: $message");
},
onError: (CometChatException excep) {

Check warning on line 553 in sdk/flutter/v4/interactive-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/flutter/v4/interactive-messages.mdx#L553

Did you really mean 'onError'?
debugPrint("Interactive message sending failed with error: ${excep.message}");
},
);
Expand All @@ -573,7 +573,7 @@
<Card title="Transient Messages" icon="ghost" href="/sdk/flutter/transient-messages">
Send ephemeral messages that aren't stored
</Card>
<Card title="Message Structure" icon="sitemap" href="/sdk/flutter/message-structure-and-hierarchy">
<Card title="Message Structure" icon="sitemap" href="/sdk/flutter/v4/message-structure-and-hierarchy">
Understand message types and hierarchy
</Card>
</CardGroup>
Loading
Loading