Delete Conversation
Description
Section titled “Description”wss conversation_delete
The conversation_delete
request willl delete Convarsation by specified ID.
Request Parameters
Section titled “Request Parameters”Name | Type | Description |
---|---|---|
id | string | Conversation ID for deletion |
Response Fields
Section titled “Response Fields”{ "id": "RequestId", "success": true}
Example
Section titled “Example”{ "request": { "conversation_delete": { "id": "63077ad836b78c3d82af0812" }, "id": "RequestId" }}
When a user leaves the group chat, the next message will also be sent to all users who are online and saved in the Messages
collection:
{ "_id": "6666c4bb2429c50ad0eb0ff6", "cid": "665ee4ab01f6a3b5ec90a2f4", "body": "lane1991 has left the group", "t": 1718011067, "from": "65fcb3f67dbaace5021595b9", "x": { "type": "left_participants", "user": { "native_id": "646e2092d80fe5c4e688dfa0", "_id": "646e2092d80fe5c4e688dfa0", "login": "lane1991", "recent_activity": 1717670392, "created_at": "2024-03-21T22:25:58.169Z", "updated_at": "2024-03-21T22:25:58.169Z" } }, "created_at": "2023-05-24T14:34:58.066Z"}
See Also
Section titled “See Also” SAMA chat server API: Conversations When we developed our API, we followed three rules: fast, confidential, and scalable. Each of these rules has a powerful force when we choose which messenger you will use.
DataBase Records Collection of complete objects stored in the database.