Chats
Mark Voice Note as Played
POST
/api/v1/chat/markplayedMark a voice note as played.
Parameters
- IdarrayRequired
The voice note message ids.
- ChatPhonestringRequired
The chat: a person or a group id.
- SenderPhonestringOptional
Who sent the voice note. Needed in groups.
| Name | Type | Required | Description |
|---|---|---|---|
| Id | array | Yes | The voice note message ids. |
| ChatPhone | string | Yes | The chat: a person or a group id. |
| SenderPhone | string | No | Who sent the voice note. Needed in groups. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/chat/markplayed" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Id": [
"3EB0ABCDEF1234567890"
],
"ChatPhone": "[email protected]"
}'