Fetches the group message list for a user.
Iterating through List Group Messages API:
REST API endpoint - /groups/{guid}/messages?limit=1000&fromTimestamp=1679434430&affix=appendThe endpoint mentioned above would return 1K messages starting from the mentioned timestamp in fromTimestamp.
In the API response, there would be a meta object nested with previous, current, and next properties.
You have to fetch the value of sentAt property from next object and pass it to the query parameter (fromTimestamp) for the next iteration.
"next": {
"affix": "append",
"sentAt": 1679493319,
"fromTimestamp": "1679434430",
"id": "1001273"
}
/groups/{guid}/messages?limit=1000&fromTimestamp=1679493319&affix=append
The above query parameter would fetch the next page.
For more details please visit here
By default, the searchKey is searched only in message text. However, if you enable Conversation & Advanced Search feature, the searchKey will be searched in message text, file name, mentions & mime type of the file.
The Conversation & Advanced Search feature is only available in Advanced & Custom plans. If you're already on one of these plans, please enable the Conversation & Advanced Search feature from CometChat Dashboard (Open your app, navigate to Chats -> Settings -> General Configuration)
Feature | Basic Search | Advanced Search |
---|---|---|
Text search | ✅ | ✅ |
File name search | ❌ | ✅ |
Mentions search | ❌ | ✅ |
Mime type search | ❌ | ✅ |
Attachments | ❌ | ✅ |
Links | ❌ | ✅ |
Reactions | ❌ | ✅ |
Mentions | ❌ | ✅ |
Mentioned Uids | ❌ | ✅ |