Skip to content
Merged
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
2 changes: 1 addition & 1 deletion fundamentals/avatars.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Avatars extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Avatars**.

## How does it work?

Expand Down Expand Up @@ -61,11 +61,11 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 64 in fundamentals/avatars.mdx

View check run for this annotation

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

fundamentals/avatars.mdx#L64

Did you really mean 'JSONObject'?
JSONObject body=new JSONObject();

// bytes refer to the selected image bytes
String imageString = Base64.encodeToString(bytes, Base64.NO_WRAP);

Check warning on line 68 in fundamentals/avatars.mdx

View check run for this annotation

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

fundamentals/avatars.mdx#L68

Did you really mean 'imageString'?

// The image type can image/jpg, image/png, etc.
// based on the image file under consideration.
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/bitly.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Bitly"
description: "Shorten long links in CometChat text messages with Bitly by configuring an access token, group GUID, and extension call."

Check warning on line 3 in fundamentals/bitly.mdx

View check run for this annotation

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

fundamentals/bitly.mdx#L3

Did you really mean 'Bitly'?
---

*Learn how to minify the long website links in your text messages using Bitly.*

Check warning on line 6 in fundamentals/bitly.mdx

View check run for this annotation

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

fundamentals/bitly.mdx#L6

Did you really mean 'Bitly'?

## Before you begin

Expand All @@ -12,14 +12,14 @@
3. Click on Settings and in the left navigation pane, select API.
4. Click on Generate Token to create a new Access Token.
5. Using the above Access Token, fetch the GUID for your group using their [Get Groups API](https://dev.bitly.com/api-reference#getGroups).
6. The Access Token and Bitly Group's GUID are required in extension settings.

Check warning on line 15 in fundamentals/bitly.mdx

View check run for this annotation

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

fundamentals/bitly.mdx#L15

Did you really mean 'Bitly'?

## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Bitly extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Bitly** under **Extensions**.

Check warning on line 20 in fundamentals/bitly.mdx

View check run for this annotation

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

fundamentals/bitly.mdx#L20

Did you really mean 'Bitly'?
3. Open the settings for this extension.
4. Enter your Bitly Access Token and Group's GUID.

Check warning on line 22 in fundamentals/bitly.mdx

View check run for this annotation

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

fundamentals/bitly.mdx#L22

Did you really mean 'Bitly'?
5. Save your settings.

## How does it work?
Expand All @@ -45,12 +45,12 @@
<Tab title="Java">
```java
String URL = "/v1/shorten";
JSONObject body=new JSONObject();

Check warning on line 48 in fundamentals/bitly.mdx

View check run for this annotation

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

fundamentals/bitly.mdx#L48

Did you really mean 'JSONObject'?

body.put("text", "Your message with URL https://yourdomain.com/very/very/long/url");

CometChat.callExtension("url-shortener-bitly", "POST", URL, body,
new CometChat.CallbackListener < JSONObject > () {

Check warning on line 53 in fundamentals/bitly.mdx

View check run for this annotation

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

fundamentals/bitly.mdx#L53

Did you really mean 'JSONObject'?
@Override
public void onSuccess(JSONObject jsonObject) {
// minifiedText from the extension
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/chatwoot.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Chatwoot"

Check warning on line 2 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L2

Did you really mean 'Chatwoot'?
description: "Connect Chatwoot with CometChat to route customer support conversations through your chat experience using access tokens and inbox IDs."

Check warning on line 3 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L3

Did you really mean 'Chatwoot'?
---

The Chatwoot extension makes customer support seamless for your users. Instead of having two interfaces- one for chat between users and one for chat with your support team, you can use CometChat as a front-end for your customer support use case as well!

Check warning on line 6 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L6

Did you really mean 'Chatwoot'?

<Frame>
<img src="/images/555c497f-hou0795h82wqx8nuao1gvuhj8voozcv5194qj2axb54bd7k3xugudpga1xb4z180-446cdb35aa82249ba3c30cf2735896a7.jpg" />
Expand All @@ -11,15 +11,15 @@

## Before you begin

1. You may have an existing account created with Chatwoot. If not, sign up with [Chatwoot](https://app.chatwoot.com/app/auth/signup).

Check warning on line 14 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L14

Did you really mean 'Chatwoot'?

2. Do the following mandatory setup on Chatwoot:

Check warning on line 16 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L16

Did you really mean 'Chatwoot'?

1. To add Agent(s): [Click here](https://www.chatwoot.com/docs/user-guide/add-agent-settings)
2. To create a Channel and Inbox: [Click here](https://www.chatwoot.com/docs/product/channels/api/create-channel)
3. Only mention the name of the channel for now. The webhook URL can be skipped.

3. Get your Chatwoot Access token:

Check warning on line 22 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L22

Did you really mean 'Chatwoot'?

1. Once you have logged in, click on your avatar in the bottom left corner.
2. Scroll to the bottom of the Account settings section that opens up.
Expand All @@ -30,7 +30,7 @@
1. Once you have logged in, click on the Settings icon in the left bar.
2. Click on the "Inboxes" in the navigation.
3. Click on the Inbox that you want to set up for the CometChat support.
4. Copy the Inbox ID from the URL. For eg, if the URL is: `https://app.chatwoot.com/app/accounts/123/settings/inboxes/12128` then the Inbox ID is `12128.`

Check warning on line 33 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L33

Did you really mean 'eg'?

5. Get the Account ID:

Expand All @@ -57,15 +57,15 @@

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.

2. Go to the Extensions section and enable the Chatwoot extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Chatwoot** under **Extensions**.

Check warning on line 60 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L60

Did you really mean 'Chatwoot'?

3. Open the Settings for this extension.

4. Enter the following details about your Chatwoot account (copied earlier):

Check warning on line 64 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L64

Did you really mean 'Chatwoot'?

1. Chatwoot Access token

Check warning on line 66 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L66

Did you really mean 'Chatwoot'?
2. Chatwoot Account ID

Check warning on line 67 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L67

Did you really mean 'Chatwoot'?
3. Chatwoot Inbox ID

Check warning on line 68 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L68

Did you really mean 'Chatwoot'?

5. Enter the user's UID on CometChat who's going to be the Customer Support contact.

Expand All @@ -75,7 +75,7 @@
<img src="/images/1d9406ad-poi305w548f8iby8n7b5a2bstoibjp9pxippeq8oqygdesa82berqmj8ny7rj5dj-8a6c0e0a1002a0a810c2ea795dd863ef.png" />
</Frame>

#### On Chatwoot Dashboard

Check warning on line 78 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L78

Did you really mean 'Chatwoot'?

1. Go to the Settings and the Inboxes section.
2. Click on the settings icon for the inbox in use.
Expand All @@ -88,6 +88,6 @@
## How does it work?

* The end users of your app can send queries to the Customer Support user that you have set in the extension's settings.
* These queries will be forwarded to the configured Chatwoot inbox.

Check warning on line 91 in fundamentals/chatwoot.mdx

View check run for this annotation

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

fundamentals/chatwoot.mdx#L91

Did you really mean 'Chatwoot'?
* When an agent replies to the queries, those will be sent over to CometChat and received by your end user.
* With this, your end users can communicate with each other as well as your Customer support team using the same Chat interface.
2 changes: 1 addition & 1 deletion fundamentals/collaborative-document.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Collaborative Document extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Collaborative document** under **Extensions**.

## How does it work?

Expand All @@ -21,7 +21,7 @@

You can initiate the session in either one-on-one chat or a group chat. The session can be shared by simply submitting the `receiver` (uid/guid) and `receiverType` (user/group).

This extension uses the `callExtension` method provided by our SDKs.

Check warning on line 24 in fundamentals/collaborative-document.mdx

View check run for this annotation

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

fundamentals/collaborative-document.mdx#L24

Did you really mean 'SDKs'?

<Tabs>
<Tab title="JavaScript">
Expand All @@ -40,7 +40,7 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 43 in fundamentals/collaborative-document.mdx

View check run for this annotation

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

fundamentals/collaborative-document.mdx#L43

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
body.put("receiverType", "user/group");
Expand Down Expand Up @@ -179,7 +179,7 @@

<Tab title="Swift">
```swift
let textMessage = message as? TextMessage

Check warning on line 182 in fundamentals/collaborative-document.mdx

View check run for this annotation

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

fundamentals/collaborative-document.mdx#L182

Did you really mean 'textMessage'?
var metadata : [String : Any]? = textMessage.metaData
if metadata != nil {

Expand Down Expand Up @@ -216,10 +216,10 @@
4. Strikethrough
5. Numbered list
6. Bulleted list
7. Indent and Outdent

Check warning on line 219 in fundamentals/collaborative-document.mdx

View check run for this annotation

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

fundamentals/collaborative-document.mdx#L219

Did you really mean 'Outdent'?

You can export your document as:

1. Etherpad

Check warning on line 223 in fundamentals/collaborative-document.mdx

View check run for this annotation

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

fundamentals/collaborative-document.mdx#L223

Did you really mean 'Etherpad'?
2. HTML
3. Plain text
2 changes: 1 addition & 1 deletion fundamentals/collaborative-whiteboard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Collaborative Whiteboard extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Collaborative whiteboard** under **Extensions**.

## How does it work?

Expand All @@ -21,7 +21,7 @@

You can initiate a whiteboard in either one-on-one chat or a group chat. The session can be shared by simply submitting the `receiver` (uid/guid) and `receiverType` (user/group).

This extension uses the `callExtension` method provided by our SDKs.

Check warning on line 24 in fundamentals/collaborative-whiteboard.mdx

View check run for this annotation

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

fundamentals/collaborative-whiteboard.mdx#L24

Did you really mean 'SDKs'?

<Tabs>
<Tab title="JavaScript">
Expand Down Expand Up @@ -58,7 +58,7 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 61 in fundamentals/collaborative-whiteboard.mdx

View check run for this annotation

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

fundamentals/collaborative-whiteboard.mdx#L61

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
body.put("receiverType", "user/group");
Expand All @@ -67,7 +67,7 @@
CometChat.callExtension("whiteboard", "POST", "/v1/create", body,
new CometChat.CallbackListener<JSONObject>() {
@Override
public void onSuccess(JSONObject responseObject) {

Check warning on line 70 in fundamentals/collaborative-whiteboard.mdx

View check run for this annotation

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

fundamentals/collaborative-whiteboard.mdx#L70

Did you really mean 'onSuccess'?
// The whiteboard link to join as an initiator.
}

Expand Down Expand Up @@ -99,7 +99,7 @@
};
CometChat.callExtension("whiteboard", "POST", "/v1/create", body, onSuccess: (map) {

}, onError: (e) {

Check warning on line 102 in fundamentals/collaborative-whiteboard.mdx

View check run for this annotation

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

fundamentals/collaborative-whiteboard.mdx#L102

Did you really mean 'onError'?

});
```
Expand All @@ -125,7 +125,7 @@

By default, the unread count is not incremented for Custom Messages.

Hence, the `metadata`contains `incrementUnreadCount` with value as `true`. Use this for incrementing the unread count every time a Collaborative whiteboard's custom message is received.

Check warning on line 128 in fundamentals/collaborative-whiteboard.mdx

View check run for this annotation

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

fundamentals/collaborative-whiteboard.mdx#L128

Did you really mean 'whiteboard's'?

### Append username to the Whiteboard URL

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

<Tab title="Java">
```java
User user = CometChat.getLoggedInUser();

Check warning on line 175 in fundamentals/collaborative-whiteboard.mdx

View check run for this annotation

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

fundamentals/collaborative-whiteboard.mdx#L175

'user' is repeated!
if (user != null) {
String username = user.getName().replace(" ", "_");
String boardUrl = "your_board_url_here"; // replace with your actual URL
Expand Down Expand Up @@ -296,7 +296,7 @@

<Tab title="Swift">
```swift
let textMessage = message as? TextMessage

Check warning on line 299 in fundamentals/collaborative-whiteboard.mdx

View check run for this annotation

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

fundamentals/collaborative-whiteboard.mdx#L299

Did you really mean 'textMessage'?
var metadata : [String : Any]? = textMessage.metaData
if metadata != nil {

Expand Down
2 changes: 1 addition & 1 deletion fundamentals/disappearing-messages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Disappearing messages extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Disappearing messages** under **Extensions**.

## How does it work?

Expand Down Expand Up @@ -57,7 +57,7 @@
CometChat.callExtension("disappearing-messages", "DELETE", "/v1/disappear", body,
new CometChat.CallbackListener<JSONObject>() {
@Override
public void onSuccess(JSONObject responseObject) {

Check warning on line 60 in fundamentals/disappearing-messages.mdx

View check run for this annotation

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

fundamentals/disappearing-messages.mdx#L60

Did you really mean 'onSuccess'?
// Will disappear successfully.
}

Expand Down
2 changes: 1 addition & 1 deletion fundamentals/email-replies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@

Before saving the Inbound Host and URL:

1. Uncheck **Spam Check** checkbox.

Check warning on line 70 in fundamentals/email-replies.mdx

View check run for this annotation

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

fundamentals/email-replies.mdx#L70

Did you really mean 'Uncheck'?
2. Uncheck **Send Raw** checkbox.

Check warning on line 71 in fundamentals/email-replies.mdx

View check run for this annotation

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

fundamentals/email-replies.mdx#L71

Did you really mean 'Uncheck'?

## Extension Settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Email replies extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Email replies**.
3. Open up the settings page for this extension.
4. Select *Email replies* option and enter the sender Email ID.
5. Save your settings.
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/end-to-end-encryption.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.

2. Go to the Extensions section and enable the End-to-end encryption extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **End-to-end encryption**.

3. Open the Settings for this extension and save the following:

Expand Down Expand Up @@ -84,9 +84,9 @@
<Tab title="Java">
```java
CometChat.callExtension("e2ee", "GET", "/v1/virgil-jwt", null,
new CometChat.CallbackListener < JSONObject > () {

Check warning on line 87 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L87

Did you really mean 'JSONObject'?
@Override
public void onSuccess(JSONObject jsonObject) {

Check warning on line 89 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L89

Did you really mean 'onSuccess'?

Check warning on line 89 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L89

Did you really mean 'JSONObject'?
// virgilToken, identity
}
@Override
Expand Down Expand Up @@ -119,9 +119,9 @@
<Tabs>
<Tab title="JavaScript">
```js
const uids = ['cometchat-uid-1'];

Check warning on line 122 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L122

Did you really mean 'uids'?
const guids = ['cometchat-guid-1', 'anothergroup'];

Check warning on line 123 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L123

Did you really mean 'guids'?

Check warning on line 123 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L123

Did you really mean 'anothergroup'?
CometChat.callExtension('e2ee', 'POST', '/v1/get-identities', { uids, guids })

Check warning on line 124 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L124

Did you really mean 'uids'?

Check warning on line 124 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L124

Did you really mean 'guids'?
.then(response => {
// userIdentities and groupIdentities are array of objects.
// Each object has (g)uid as the key and the identity as its value.
Expand All @@ -139,11 +139,11 @@
import org.json.simple.JSONObject;

JSONObject body=new JSONObject();
JSONArray uids = new JSONArray();

Check warning on line 142 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L142

Did you really mean 'JSONArray'?

Check warning on line 142 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L142

Did you really mean 'JSONArray'?
JSONArray guids = new JSONArray();

uids.add("cometchat-uid-1");
guids.add("cometchat-guid-1", "anothergroup");

Check warning on line 146 in fundamentals/end-to-end-encryption.mdx

View check run for this annotation

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

fundamentals/end-to-end-encryption.mdx#L146

Did you really mean 'anothergroup'?

body.put(uids);
body.put(guids);
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/giphy.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Giphy"
description: "Add Giphy GIFs to CometChat conversations with trending GIFs, search results, API keys, and extension calls."

Check warning on line 3 in fundamentals/giphy.mdx

View check run for this annotation

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

fundamentals/giphy.mdx#L3

Did you really mean 'Giphy'?
---

GIFs are a great way to change the tone or convey emotions in your conversations. Here's a guide which helps to implement Gifphy in an easy and quick way. Let's get started!

Check warning on line 6 in fundamentals/giphy.mdx

View check run for this annotation

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

fundamentals/giphy.mdx#L6

Did you really mean 'Gifphy'?

## Before you begin

Expand All @@ -15,8 +15,8 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Giphy extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Giphy** under **Extensions**.

Check warning on line 18 in fundamentals/giphy.mdx

View check run for this annotation

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

fundamentals/giphy.mdx#L18

Did you really mean 'Giphy'?
3. Click on the settings button and enter your Giphy API key and hit save.

Check warning on line 19 in fundamentals/giphy.mdx

View check run for this annotation

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

fundamentals/giphy.mdx#L19

Did you really mean 'Giphy'?

## How does it work?

Expand All @@ -27,7 +27,7 @@

### Get Trending GIFs

To list and show the most trending GIFs on Giphy, all you have to do is include the following parameters in your request.

Check warning on line 30 in fundamentals/giphy.mdx

View check run for this annotation

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

fundamentals/giphy.mdx#L30

Did you really mean 'Giphy'?

| key | Value | Description |
| ------ | ------ | -------------------------------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -56,9 +56,9 @@
String URL = "/v1/trending?offset=1&limit=15";

CometChat.callExtension("gifs-giphy", "GET", URL, null,
new CometChat.CallbackListener < JSONObject > () {

Check warning on line 59 in fundamentals/giphy.mdx

View check run for this annotation

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

fundamentals/giphy.mdx#L59

Did you really mean 'JSONObject'?
@Override
public void onSuccess(JSONObject jsonObject) {

Check warning on line 61 in fundamentals/giphy.mdx

View check run for this annotation

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

fundamentals/giphy.mdx#L61

Did you really mean 'JSONObject'?
// GIFs data from Giphy
}
@Override
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/intercom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<Note>

The integration works with Intercom API Verion `2.3 (2020-11-12)`. If there's a version mismatch, the extension won't work.

Check warning on line 27 in fundamentals/intercom.mdx

View check run for this annotation

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

fundamentals/intercom.mdx#L27

Did you really mean 'Verion'?

</Note>

Expand All @@ -34,7 +34,7 @@

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.

2. Go to the Extensions section and enable the Intercom extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Intercom** under **Extensions**.

3. Open the Settings for this extension.

Expand Down
2 changes: 1 addition & 1 deletion fundamentals/link-preview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Link Preview extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Link Preview** under **Extensions**.

## How does it work?

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

<Tab title="Java">
```java
JSONObject metadata = message.getMetadata();

Check warning on line 95 in fundamentals/link-preview.mdx

View check run for this annotation

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

fundamentals/link-preview.mdx#L95

Did you really mean 'JSONObject'?
if (metadata != null) {
JSONObject injectedObject = metadata.getJSONObject("@injected");
if (injectedObject != null && injectedObject.has("extensions")) {
Expand All @@ -100,7 +100,7 @@
if (extensionsObject != null && extensionsObject.has("link-preview")){

JSONObject linkObject = extensionsObject.getJSONObject("link-preview");
JSONArray linkArray= linkObject.getJSONArray("links");

Check warning on line 103 in fundamentals/link-preview.mdx

View check run for this annotation

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

fundamentals/link-preview.mdx#L103

Did you really mean 'linkArray'?
JSONObject linkPreviewObject=linkArray.getJSONObject(0);
if (linkPreviewObject.has("description"))
String description = linkPreviewObject.getString("description");
Expand Down Expand Up @@ -153,7 +153,7 @@

<Tab title="Swift">
```swift
let textMessage = message as? TextMessage

Check warning on line 156 in fundamentals/link-preview.mdx

View check run for this annotation

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

fundamentals/link-preview.mdx#L156

Did you really mean 'textMessage'?

if let metaData = textMessage.metaData , let injected = metaData["@injected"] as? [String : Any], let cometChatExtension = injected["extensions"] as? [String : Any], let linkPreviewDictionary = cometChatExtension["link-preview"] as? [String : Any], let linkArray = linkPreviewDictionary["links"] as? [[String: Any]] {

Expand Down
2 changes: 1 addition & 1 deletion fundamentals/mentions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Mentions extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Mentions** under **Core**.

## How does it work?

Expand Down Expand Up @@ -59,7 +59,7 @@
String URL = "/v1/fetch";

CometChat.callExtension("mentions", "GET", URL, null,
new CometChat.CallbackListener < JSONObject > () {

Check warning on line 62 in fundamentals/mentions.mdx

View check run for this annotation

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

fundamentals/mentions.mdx#L62

Did you really mean 'JSONObject'?
@Override
public void onSuccess(JSONObject jsonObject) {
// {messages: []}
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/message-shortcuts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Message shortcuts extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Message shortcuts** under **Extensions**.
3. Open the settings for this extension.
4. You should a list of Global Message shortcuts.
5. Edit the existing shortcuts or add new ones.
Expand Down Expand Up @@ -57,7 +57,7 @@
CometChat.callExtension("message-shortcuts", "GET", "/v1/fetch", null,
new CometChat.CallbackListener<JSONObject>() {
@Override
public void onSuccess(JSONObject responseObject) {

Check warning on line 60 in fundamentals/message-shortcuts.mdx

View check run for this annotation

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

fundamentals/message-shortcuts.mdx#L60

Did you really mean 'onSuccess'?
// Shortcuts received here.
}

Expand Down Expand Up @@ -111,13 +111,13 @@
<Tabs>
<Tab title="JavaScript">
```js
const finalList = {

Check warning on line 114 in fundamentals/message-shortcuts.mdx

View check run for this annotation

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

fundamentals/message-shortcuts.mdx#L114

Did you really mean 'finalList'?
shortcuts: {
"!hbd":"Happy birthday! Have fun!"
}
};

CometChat.callExtension('message-shortcuts', 'POST', 'v1/update', finalList)

Check warning on line 120 in fundamentals/message-shortcuts.mdx

View check run for this annotation

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

fundamentals/message-shortcuts.mdx#L120

Did you really mean 'finalList'?
.then(response => {
// Updated successfully.
})
Expand Down Expand Up @@ -157,11 +157,11 @@

<Tab title="Swift">
```swift
let finalList = ["shortcuts": ["!hbd": "Happy Birthday!" ,

Check warning on line 160 in fundamentals/message-shortcuts.mdx

View check run for this annotation

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

fundamentals/message-shortcuts.mdx#L160

Did you really mean 'finalList'?
"!cu" : "See you later.",
"!ty", "Hey! Thanks a lot! :blush:",
"!wc", "You're welcome!"]]
CometChat.callExtension(slug: "message-shortcuts", type: .post, endPoint: "v1/update", body: finalList, onSuccess: { (response) in

Check warning on line 164 in fundamentals/message-shortcuts.mdx

View check run for this annotation

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

fundamentals/message-shortcuts.mdx#L164

Did you really mean 'finalList'?
// Updated successfully.
}) { (error) in
// Error occured
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/message-translation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Message Translation extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Message Translation** under **Extensions**.

## How does it work?

Expand All @@ -20,87 +20,87 @@

| Language | Language code |
| --------------------- | ------------- |
| Afrikaans | af |

Check warning on line 23 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L23

Did you really mean 'af'?
| Albanian | sq |
| Amharic | am |
| Arabic | ar |
| Armenian | hy |

Check warning on line 27 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L27

Did you really mean 'hy'?
| Azerbaijani | az |

Check warning on line 28 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L28

Did you really mean 'az'?
| Bengali | bn |

Check warning on line 29 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L29

Did you really mean 'bn'?
| Bosnian | bs |

Check warning on line 30 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L30

Did you really mean 'bs'?
| Bulgarian | bg |

Check warning on line 31 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L31

Did you really mean 'bg'?
| Catalan | ca |
| Chinese (Simplified) | zh |

Check warning on line 33 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L33

Did you really mean 'zh'?
| Chinese (Traditional) | zh-TW |
| Croatian | hr |
| Czech | cs |
| Danish | da |

Check warning on line 37 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L37

Did you really mean 'da'?
| Dari | fa-AF |

Check warning on line 38 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L38

Did you really mean 'Dari'?
| Dutch | nl |

Check warning on line 39 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L39

Did you really mean 'nl'?
| English | en |
| Estonian | et |
| Farsi (Persian) | fa |
| Filipino, Tagalog | tl |

Check warning on line 43 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L43

Did you really mean 'tl'?
| Finnish | fi |

Check warning on line 44 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L44

Did you really mean 'fi'?
| French | fr |
| French (Canada) | fr-CA |
| Georgian | ka |
| German | de |
| Greek | el |
| Gujarati | gu |

Check warning on line 50 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L50

Did you really mean 'gu'?
| Haitian Creole | ht |
| Hausa | ha |
| Hebrew | he |
| Hindi | hi |
| Hungarian | hu |

Check warning on line 55 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L55

Did you really mean 'hu'?
| Icelandic | is |
| Indonesian | id |
| Irish | ga |

Check warning on line 58 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L58

Did you really mean 'ga'?
| Italian | it |
| Japanese | ja |
| Kannada | kn |
| Kazakh | kk |

Check warning on line 62 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L62

Did you really mean 'kk'?
| Korean | ko |

Check warning on line 63 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L63

Did you really mean 'ko'?
| Latvian | lv |
| Lithuanian | lt |

Check warning on line 65 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L65

Did you really mean 'lt'?
| Macedonian | mk |
| Malay | ms |
| Malayalam | ml |
| Maltese | mt |
| Marathi | mr |

Check warning on line 70 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L70

Did you really mean 'mr'?
| Mongolian | mn |

Check warning on line 71 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L71

Did you really mean 'mn'?
| Norwegian (Bokmål) | no |
| Pashto | ps |
| Polish | pl |
| Portuguese (Brazil) | pt |
| Portuguese (Portugal) | pt-PT |
| Punjabi | pa |
| Romanian | ro |

Check warning on line 78 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L78

Did you really mean 'ro'?
| Russian | ru |

Check warning on line 79 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L79

Did you really mean 'ru'?
| Serbian | sr |

Check warning on line 80 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L80

Did you really mean 'sr'?
| Sinhala | si |

Check warning on line 81 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L81

Did you really mean 'Sinhala'?
| Slovak | sk |

Check warning on line 82 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L82

Did you really mean 'sk'?
| Slovenian | sl |

Check warning on line 83 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L83

Did you really mean 'sl'?
| Somali | so |
| Spanish | es |
| Spanish (Mexico) | es-MX |
| Swahili | sw |

Check warning on line 87 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L87

Did you really mean 'sw'?
| Swedish | sv |

Check warning on line 88 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L88

Did you really mean 'sv'?
| Tamil | ta |
| Telugu | te |

Check warning on line 90 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L90

Did you really mean 'te'?
| Thai | th |

Check warning on line 91 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L91

Did you really mean 'th'?
| Turkish | tr |
| Ukrainian | uk |

Check warning on line 93 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L93

Did you really mean 'uk'?
| Urdu | ur |

Check warning on line 94 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L94

Did you really mean 'ur'?
| Uzbek | uz |

Check warning on line 95 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L95

Did you really mean 'uz'?
| Vietnamese | vi |
| Welsh | cy |

Check warning on line 97 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L97

Did you really mean 'cy'?

The language is identified using identifiers from [RFC 5646](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) — if there is a 2-letter ISO 639-1 identifier, with a regional subtag if necessary, it uses that. Otherwise, it uses the ISO 639-2 3-letter code.

Check warning on line 99 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L99

Did you really mean 'subtag'?

## Implementation

The extension uses the `callExtension()` method provided by CometChat SDKs.

Check warning on line 103 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L103

Did you really mean 'SDKs'?

The messages will be translated according to the languages specified by the receiver. You can specify the languages for translation as an array. If you pass in an empty array, the language will default to English.

Expand All @@ -123,10 +123,10 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 126 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L126

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
JSONArray languages = new JSONArray();

Check warning on line 129 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L129

Did you really mean 'JSONArray'?

languages.add("ru");
languages.add("hi");
Expand Down Expand Up @@ -224,7 +224,7 @@
<Tabs>
<Tab title="JavaScript">
```js
const messageText = "Hey there! How are you?";

Check warning on line 227 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L227

Did you really mean 'messageText'?

const metadata = {
"message-translation": {
Expand All @@ -233,7 +233,7 @@
},
};

const textMessage = new CometChat.TextMessage(receiverID, messageText, receiverType);

Check warning on line 236 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L236

Did you really mean 'textMessage'?

Check warning on line 236 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L236

Did you really mean 'messageText'?

Check warning on line 236 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L236

Did you really mean 'receiverType'?
textMessage.setMetadata(metadata);

CometChat.sendMessage(textMessage).then(
Expand Down Expand Up @@ -290,7 +290,7 @@
},
}")

val textMessage = TextMessage(receiverID, messageText, receiverType)

Check warning on line 293 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L293

Did you really mean 'textMessage'?

Check warning on line 293 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L293

Did you really mean 'messageText'?

Check warning on line 293 in fundamentals/message-translation.mdx

View check run for this annotation

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

fundamentals/message-translation.mdx#L293

Did you really mean 'receiverType'?
textMessage.metadata=metadataObject

CometChat.sendMessage(textMessage, object : CometChat.CallbackListener<TextMessage>() {
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/pin-message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Pin message extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Pin Message** under **Extensions**.

## How does it work?

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

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 42 in fundamentals/pin-message.mdx

View check run for this annotation

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

fundamentals/pin-message.mdx#L42

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
body.put("msgId", 280);
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/polls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Polls extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Polls** under **Extensions**.

## How do polls work?

Expand All @@ -27,7 +27,7 @@
3. Receiver (UID/GUID)
4. Receiver type (user/group)

The options in the array are assigned an index appropriately (starting from 1). You can create a poll by using `callExtension` method provided by our SDKs:

Check warning on line 30 in fundamentals/polls.mdx

View check run for this annotation

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

fundamentals/polls.mdx#L30

Did you really mean 'SDKs'?

<Tabs>
<Tab title="JavaScript">
Expand All @@ -49,10 +49,10 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 52 in fundamentals/polls.mdx

View check run for this annotation

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

fundamentals/polls.mdx#L52

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
JSONArray options = new JSONArray();

Check warning on line 55 in fundamentals/polls.mdx

View check run for this annotation

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

fundamentals/polls.mdx#L55

Did you really mean 'JSONArray'?

options.add("Milk");
options.add("Cereal");
Expand Down Expand Up @@ -113,7 +113,7 @@

Voting in a poll simply requires you to provide the `id` of the poll and the option you intend to vote for. The `vote` parameter is basically the option number.

You can allow users to vote for a poll by using the `callExtension` method provided by our SDKs:

Check warning on line 116 in fundamentals/polls.mdx

View check run for this annotation

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

fundamentals/polls.mdx#L116

Did you really mean 'SDKs'?

<Tabs>
<Tab title="JavaScript">
Expand Down Expand Up @@ -236,7 +236,7 @@

### Using callExtension() method

For fetching results, the only parameter required is the id of the poll. You can use this method only when you are the creator of the poll. Others cannot call this method to get the poll results. Result for a poll can be fetched using a `callExtension` method provided by our SDKs:

Check warning on line 239 in fundamentals/polls.mdx

View check run for this annotation

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

fundamentals/polls.mdx#L239

Did you really mean 'SDKs'?

<Tabs>
<Tab title="JavaScript">
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/reactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Reactions extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Reactions** under **Core**.

## How do reactions work?

Expand All @@ -32,7 +32,7 @@

Sending Reactions

To add a reaction using selected emoji, use the `callExtension` method provided by our SDKs as follows:

Check warning on line 35 in fundamentals/reactions.mdx

View check run for this annotation

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

fundamentals/reactions.mdx#L35

Did you really mean 'SDKs'?

<Tabs>
<Tab title="JavaScript">
Expand All @@ -51,7 +51,7 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 54 in fundamentals/reactions.mdx

View check run for this annotation

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

fundamentals/reactions.mdx#L54

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
body.put("msgId", ID_OF_THE_MESSAGE);
Expand Down Expand Up @@ -181,7 +181,7 @@

<Tab title="Swift">
```swift
let textMessage = message as? TextMessage

Check warning on line 184 in fundamentals/reactions.mdx

View check run for this annotation

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

fundamentals/reactions.mdx#L184

Did you really mean 'textMessage'?
var metadata : [String : Any]? = textMessage.metaData
if metadata != nil {
var injectedObject : [String : Any]? = (metadata?["@injected"] as? [String : Any])!
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/reminders.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## Extension Settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Reminders extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Reminders** under **Extensions**.
3. Go to the Users section and create a new user with `cc_reminder_bot` as the UID. The name and Avatar can be of your choice.

<Note>
Expand Down Expand Up @@ -68,7 +68,7 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 71 in fundamentals/reminders.mdx

View check run for this annotation

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

fundamentals/reminders.mdx#L71

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
body.put("about", ID_OF_THE_MESSAGE);
Expand Down Expand Up @@ -273,7 +273,7 @@

### Edit reminders

In case a reminder needs to be preponed or postponed, it can be done using the Edit reminders functionality. The following updates the reminder with `reminderId: "e9cda52a-3839-4fd5-a010-b70db136f0f1"`

Check warning on line 276 in fundamentals/reminders.mdx

View check run for this annotation

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

fundamentals/reminders.mdx#L276

Did you really mean 'preponed'?

For editing, use the `CometChat.callExtension` method as shown below:

Expand Down
2 changes: 1 addition & 1 deletion fundamentals/rich-media-preview.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Rich Media Preview"
description: "Generate rich previews for links in CometChat messages with Iframely metadata, thumbnails, titles, and descriptions."

Check warning on line 3 in fundamentals/rich-media-preview.mdx

View check run for this annotation

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

fundamentals/rich-media-preview.mdx#L3

Did you really mean 'Iframely'?
---

The Rich Media Preview Extension allows the developer to generate rich preview panels for all the popular sites. This extension fetches the first URL from the message for the generation of a preview.
Expand All @@ -13,14 +13,14 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Rich Media Preview extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Rich Media Preview** under **Extensions**.
3. Open the Settings for this extension.
4. Enter the iFramely API Key.

Check warning on line 18 in fundamentals/rich-media-preview.mdx

View check run for this annotation

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

fundamentals/rich-media-preview.mdx#L18

Did you really mean 'iFramely'?
5. Save your settings.

## How does it work?

If the text message contains a URL, the extension will create a Preview using your iFramely credentials. These details can then be used to show a nice preview card for that URL.

Check warning on line 23 in fundamentals/rich-media-preview.mdx

View check run for this annotation

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

fundamentals/rich-media-preview.mdx#L23

Did you really mean 'iFramely'?

The information about the Preview will be updated later for the message and hence you need to implement the `onMessageEdited` listener. Please check our [Edit message](/sdk/javascript/edit-message) documentation under the SDK of your choice.

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

<Tab title="Java">
```java
JSONObject metadata = message.getMetadata();

Check warning on line 130 in fundamentals/rich-media-preview.mdx

View check run for this annotation

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

fundamentals/rich-media-preview.mdx#L130

Did you really mean 'JSONObject'?
if (metadata != null) {
JSONObject injectedObject = metadata.getJSONObject("@injected");
if (injectedObject != null && injectedObject.has("extensions")) {
Expand Down Expand Up @@ -161,7 +161,7 @@

<Tab title="Swift">
```swift
let textMessage = message as? TextMessage

Check warning on line 164 in fundamentals/rich-media-preview.mdx

View check run for this annotation

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

fundamentals/rich-media-preview.mdx#L164

Did you really mean 'textMessage'?
var metadata : [String : Any]? = textMessage.metaData
if metadata != nil {

Expand Down
2 changes: 1 addition & 1 deletion fundamentals/save-message.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
title: "Save Message"
description: "Save, unsave, and fetch saved CometChat messages for each user with private saved-message lists."

Check warning on line 3 in fundamentals/save-message.mdx

View check run for this annotation

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

fundamentals/save-message.mdx#L3

Did you really mean 'unsave'?
---

## Extension settings

1. Login to the [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Save message extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Save Message** under **Extensions**.

## How does it work?

Save message extension provides you the ability to:

1. Save messages
2. Unsave messages

Check warning on line 16 in fundamentals/save-message.mdx

View check run for this annotation

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

fundamentals/save-message.mdx#L16

Did you really mean 'Unsave'?
3. Fetch all the saved messages by the user.

Saved messages are private and are visible to the user who has saved them.
Expand All @@ -39,7 +39,7 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 42 in fundamentals/save-message.mdx

View check run for this annotation

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

fundamentals/save-message.mdx#L42

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
body.put("msgId", 111);
Expand Down Expand Up @@ -72,9 +72,9 @@

</Tabs>

### 2. Unsave a message

Check warning on line 75 in fundamentals/save-message.mdx

View check run for this annotation

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

fundamentals/save-message.mdx#L75

Did you really mean 'Unsave'?

To unsave a message, use the `callExtension` method provided by the SDK to make an HTTP DELETE request with the parameters as shown below. You need to pass the `msgId` of the message that needs to be unsaved.

Check warning on line 77 in fundamentals/save-message.mdx

View check run for this annotation

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

fundamentals/save-message.mdx#L77

Did you really mean 'unsave'?

<Tabs>
<Tab title="JavaScript">
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/smart-replies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Smart Reply extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Smart Replies** under **Smart Chat Features**.

## How does it work?

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

<Tab title="Java">
```java
JSONObject metadata = message.getMetadata();

Check warning on line 82 in fundamentals/smart-replies.mdx

View check run for this annotation

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

fundamentals/smart-replies.mdx#L82

Did you really mean 'JSONObject'?
if (metadata != null) {
JSONObject injectedObject = metadata.getJSONObject("@injected");
if (injectedObject != null && injectedObject.has("extensions")) {
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/stickers-stipop.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: "Stipop"
description: "Add Stipop stickers to CometChat conversations with trending sticker packs, search, API keys, and extension calls."

Check warning on line 3 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L3

Did you really mean 'Stipop'?
---

*Learn how to integrate stickers by Stipop in your app.*

Check warning on line 6 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L6

Did you really mean 'Stipop'?

Stipop is the world's trendiest sticker platform and creator community.

Check warning on line 8 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L8

Did you really mean 'Stipop'?

## Before you begin:

1. Sign up at [Stipop](https://stipop.io/).

2. On successful signup, provide the following details:

Check warning on line 14 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L14

Did you really mean 'signup'?

1. Application name
2. Website
Expand All @@ -31,8 +31,8 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the extensions section and enable the Stipop extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Stipop** under **Extensions**.

Check warning on line 34 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L34

Did you really mean 'Stipop'?
3. Click on the settings button and enter your Stipop Application ID and API Key.

Check warning on line 35 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L35

Did you really mean 'Stipop'?
4. Save the settings once done.

## How does it work?
Expand All @@ -51,16 +51,16 @@
| | | |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------- |
| lang | string | Specify default language for regional stickers. Use a 2-letter ISO 639-1 language code. **Default Value: en** |
| limit | int | The maximum number of stickers per page. Use pageNumber accordingly for optimized sticker view. **Default Value: 20 (max: 50)** |

Check warning on line 54 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L54

Did you really mean 'pageNumber'?
| pageNumber | int | Specify pageNumber to show limit number of stickers per page. |

Check warning on line 55 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L55

Did you really mean 'pageNumber'?

Check warning on line 55 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L55

Did you really mean 'pageNumber'?
| countryCode | string | Specify default country for local stickers. Use a 2-letter ISO 3166-1 country code. **Default Value: US** |

Check warning on line 56 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L56

Did you really mean 'countryCode'?

<Tabs>
<Tab title="JavaScript">
```js
const qs = `?lang=${lang}&limit=${limit}&pageNumber=${pageNumber}&countryCode=${contryCode}`;

Check warning on line 61 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L61

Did you really mean 'qs'?

Check warning on line 61 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L61

Did you really mean 'pageNumber'?

CometChat.callExtension('stickers-stipop', 'GET', 'v1/trending' + qs, null)

Check warning on line 63 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L63

Did you really mean 'qs'?
.then(response => {
// Stickers in response
})
Expand All @@ -78,7 +78,7 @@
CometChat.callExtension("stickers-stipop", "GET", URL, null,
new CometChat.CallbackListener < JSONObject > () {
@Override
public void onSuccess(JSONObject jsonObject) {

Check warning on line 81 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L81

Did you really mean 'onSuccess'?
// Stickers
}
@Override
Expand Down Expand Up @@ -111,16 +111,16 @@
| | | |
| ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------- |
| lang | string | Specify default language for regional stickers. Use a 2-letter ISO 639-1 language code. **Default Value: en** |
| limit | int | The maximum number of stickers per page. Use pageNumber accordingly for optimized sticker view. **Default Value: 20 (max: 50)** |

Check warning on line 114 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L114

Did you really mean 'pageNumber'?
| pageNumber | int | Specify pageNumber to show limit number of stickers per page. |

Check warning on line 115 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L115

Did you really mean 'pageNumber'?
| query | string | The search term for finding stickers. |

<Tabs>
<Tab title="JavaScript">
```js
const qs = `?lang=${lang}&limit=${limit}&pageNumber=${pageNumber}&query=${query}`;

Check warning on line 121 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L121

Did you really mean 'qs'?

CometChat.callExtension('stickers-stipop', 'GET', 'v1/search' + qs, null)

Check warning on line 123 in fundamentals/stickers-stipop.mdx

View check run for this annotation

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

fundamentals/stickers-stipop.mdx#L123

Did you really mean 'qs'?
.then(response => {
// Stickers in response
})
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/stickers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Stickers extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Stickers** under **Extensions**.
3. Open the Settings for this extension.
4. Click on Save to start using Stickers with in your app.

Expand All @@ -24,7 +24,7 @@

Before you start Sending or Receiving stickers in your app, you first have to load the Sticker Sets. In your app, you can add a section/drawer that shows the enabled stickers. A user can click on any of these stickers to send it in a chat.

In order to load stickers, you can use the `callExtension` method provided by our SDKs.

Check warning on line 27 in fundamentals/stickers.mdx

View check run for this annotation

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

fundamentals/stickers.mdx#L27

Did you really mean 'SDKs'?

<Tabs>
<Tab title="JavaScript">
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/tenor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Tenor extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Tenor** under **Extensions**.
3. Click on the Settings button, enter your Tenor API key, and hit save.

## How does it work?
Expand Down Expand Up @@ -55,9 +55,9 @@
String URL = "/v1/trending?offset=1&limit=15";

CometChat.callExtension("gifs-tenor", "GET", URL, null,
new CometChat.CallbackListener < JSONObject > () {

Check warning on line 58 in fundamentals/tenor.mdx

View check run for this annotation

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

fundamentals/tenor.mdx#L58

Did you really mean 'JSONObject'?
@Override
public void onSuccess(JSONObject jsonObject) {

Check warning on line 60 in fundamentals/tenor.mdx

View check run for this annotation

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

fundamentals/tenor.mdx#L60

Did you really mean 'JSONObject'?
// GIFs data from Tenor
}
@Override
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/thumbnail-generation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to Extensions section and enable the Thumbnail Generation extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Thumbnail Generation** under **Extensions**.

## How does it work?

A small, medium and large thumbnail is generated for every attachment of a Media message of type video or image.

For eg, if a Media message of type video is sent with 2 attachments, the links to these thumbnails are then provided in the metadata of the message as shown below:

Check warning on line 17 in fundamentals/thumbnail-generation.mdx

View check run for this annotation

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

fundamentals/thumbnail-generation.mdx#L17

Did you really mean 'eg'?

<Tabs>
<Tab title="JSON">
Expand Down Expand Up @@ -112,7 +112,7 @@
for (const attachment of attachments) {
if (!attachment.error) {
const { url_small, url_medium, url_large } = attachment.data.thumbnails;
// Use the urls accordingly.

Check warning on line 115 in fundamentals/thumbnail-generation.mdx

View check run for this annotation

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

fundamentals/thumbnail-generation.mdx#L115

Did you really mean 'urls'?
}
}
}
Expand All @@ -124,7 +124,7 @@

<Tab title="Java">
```java
JSONObject metadata = message.getMetadata();

Check warning on line 127 in fundamentals/thumbnail-generation.mdx

View check run for this annotation

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

fundamentals/thumbnail-generation.mdx#L127

Did you really mean 'JSONObject'?
if (metadata != null) {
JSONObject injectedObject = metadata.getJSONObject("@injected");
if (injectedObject != null && injectedObject.has("extensions")) {
Expand Down Expand Up @@ -193,10 +193,10 @@
if let urlSmall = URL(string: thumbnails["url_small"] as? String) {
// Use the url accordingly.
}
if let urlMedium = URL(string: thumbnails["url_medium"] as? String) {

Check warning on line 196 in fundamentals/thumbnail-generation.mdx

View check run for this annotation

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

fundamentals/thumbnail-generation.mdx#L196

Did you really mean 'urlMedium'?
// Use the url accordingly.
}
if let urlLarge = URL(string: thumbnails["url_large"] as? String) {

Check warning on line 199 in fundamentals/thumbnail-generation.mdx

View check run for this annotation

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

fundamentals/thumbnail-generation.mdx#L199

Did you really mean 'urlLarge'?
// Use the url accordingly.
}
// check for attachment.error if "thumbnails" is null
Expand All @@ -211,6 +211,6 @@

<Note>

Unlike image thumbnails, which are normally generated in milliseconds, video thumbnails may take a little longer. Before viewing the preview, we recommend verifying to see if the file exists. If the difference between message sentAt and the current time is less than 5 seconds, you can set a simple timer to monitor every second.

Check warning on line 214 in fundamentals/thumbnail-generation.mdx

View check run for this annotation

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

fundamentals/thumbnail-generation.mdx#L214

Did you really mean 'sentAt'?

</Note>
2 changes: 1 addition & 1 deletion fundamentals/tinyurl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the TinyURL extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **TinyURL** under **Extensions**.
3. Open the settings and enter the TinyURL API Token.
4. If you have chosen a paid plan, you can also save your BYO domain or subdomain. Default is set to `tinyurl.com`
5. Save your settings.
Expand Down Expand Up @@ -51,12 +51,12 @@
<Tab title="Java">
```java
String URL = "/v1/shorten";
JSONObject body=new JSONObject();

Check warning on line 54 in fundamentals/tinyurl.mdx

View check run for this annotation

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

fundamentals/tinyurl.mdx#L54

Did you really mean 'JSONObject'?

body.put("text", "Your message with URL https://yourdomain.com/very/very/long/url");

CometChat.callExtension("url-shortener-tinyurl", "POST", URL, body,
new CometChat.CallbackListener < JSONObject > () {

Check warning on line 59 in fundamentals/tinyurl.mdx

View check run for this annotation

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

fundamentals/tinyurl.mdx#L59

Did you really mean 'JSONObject'?
@Override
public void onSuccess(JSONObject jsonObject) {
// minifiedText from the extension
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/video-broadcasting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Live Streaming (Video Broadcasting) extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Live Streaming (Video Broadcasting)**.
3. Open the Settings for this extension.
4. Enter the api.video Production API Key.
5. You can also select whether you want to record the live stream.
Expand All @@ -36,7 +36,7 @@

#### 1. Get broadcast details

The CometChat SDKs provide a `callExtension` method that can be called to trigger this extension. The broadcaster has to provide the following:

Check warning on line 39 in fundamentals/video-broadcasting.mdx

View check run for this annotation

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

fundamentals/video-broadcasting.mdx#L39

Did you really mean 'SDKs'?

1. Receiver type - `user` or `group`
2. The `receiver` of the broadcast link (can be a `uid` for a user or `guid` in case of a group)
Expand All @@ -58,7 +58,7 @@

<Tab title="Java">
```java
import org.json.simple.JSONObject;

Check warning on line 61 in fundamentals/video-broadcasting.mdx

View check run for this annotation

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

fundamentals/video-broadcasting.mdx#L61

Did you really mean 'JSONObject'?

JSONObject body=new JSONObject();
body.put("receiverType", "user/group");
Expand Down Expand Up @@ -208,7 +208,7 @@

<Tab title="Swift">
```swift
let textMessage = message as? TextMessage

Check warning on line 211 in fundamentals/video-broadcasting.mdx

View check run for this annotation

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

fundamentals/video-broadcasting.mdx#L211

Did you really mean 'textMessage'?
var metadata : [String : Any]? = textMessage.metaData
if metadata != nil {

Expand Down
2 changes: 1 addition & 1 deletion fundamentals/voice-transcription.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
## Extension settings

1. Login to [CometChat](https://app.cometchat.com/login) and select your app.
2. Go to the Extensions section and enable the Voice Transcription extension.
2. Navigate to **Chat & Messaging** → **Features** and enable **Voice Transcription** under **Extensions**.
3. Open the Settings for this extension.
4. Enter the Rev.ai Access Token, and click on save.

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

<Tab title="Java">
```java
JSONObject metadata = message.getMetadata();

Check warning on line 72 in fundamentals/voice-transcription.mdx

View check run for this annotation

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

fundamentals/voice-transcription.mdx#L72

Did you really mean 'JSONObject'?
if (metadata != null) {
JSONObject injectedObject = metadata.getJSONObject("@injected");
if (injectedObject != null && injectedObject.has("extensions")) {
Expand Down Expand Up @@ -103,7 +103,7 @@

<Tab title="Swift">
```swift
let textMessage = message as? TextMessage

Check warning on line 106 in fundamentals/voice-transcription.mdx

View check run for this annotation

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

fundamentals/voice-transcription.mdx#L106

Did you really mean 'textMessage'?
var metadata : [String : Any]? = textMessage.metaData
if metadata != nil {

Expand Down
8 changes: 4 additions & 4 deletions sdk/flutter/v4/extensions-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Extensions are add-on features that extend CometChat's core functionality beyond

**How to Enable:**
1. Go to [CometChat Dashboard](https://app.cometchat.com)
2. Navigate to your App → Extensions
2. Select your app and navigate to **Chat & Messaging** → **Features**
3. Enable desired extensions
4. Extensions activate automatically on SDK initialization

Expand All @@ -38,11 +38,11 @@ Extensions are enabled through the CometChat Dashboard and automatically integra
<Step title="Access Dashboard">
Log in to the [CometChat Dashboard](https://app.cometchat.com) and select your application.
</Step>
<Step title="Navigate to Extensions">
Go to the Extensions section in your app settings.
<Step title="Navigate to Features">
Go to **Chat & Messaging** → **Features** in the dashboard sidebar.
</Step>
<Step title="Enable Extensions">
Toggle on the extensions you want to use in your application.
Toggle on the extensions you want to use from the **Extensions** section.
</Step>
<Step title="Initialize SDK">
Extensions activate automatically when your Flutter app initializes the CometChat SDK.
Expand Down
6 changes: 3 additions & 3 deletions ui-kit/ios/extensions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Enable CometChat iOS UI Kit extensions for stickers, polls, collab

| Field | Value |
|-------|-------|
| Dashboard setup | CometChat Dashboard → Extensions |
| Dashboard setup | CometChat Dashboard → Chat & Messaging → Features |
| Activation | Enable in dashboard, features appear automatically in UI Kit |
| Code required | None — extensions work out of the box |
| Platforms | Works across iOS, Android, and Web with the same configuration |
Expand All @@ -15,8 +15,8 @@ Extensions add powerful features to your chat app without writing any code. Simp
## How Extensions Work

1. Log in to your [CometChat Dashboard](https://app.cometchat.com)
2. Navigate to the **Extensions** section
3. Enable the extensions you want
2. Navigate to **Chat & Messaging** → **Features**
3. Enable the extensions you want from the **Extensions** section
4. The features automatically appear in your app after initialization

<Note>
Expand Down