Chats
Star Message
POST
/api/v1/chat/starStar or unstar a message.
Parameters
- ChatstringRequired
The chat id: a person (…@s.whatsapp.net or …@lid) or a group (…@g.us).
- SenderstringOptional
Who sent the message. Needed in groups.
- IdstringRequired
The message id.
- FromMebooleanRequired
true if you sent the message.
- StarbooleanRequired
true to star, false to unstar.
| Name | Type | Required | Description |
|---|---|---|---|
| Chat | string | Yes | The chat id: a person (…@s.whatsapp.net or …@lid) or a group (…@g.us). |
| Sender | string | No | Who sent the message. Needed in groups. |
| Id | string | Yes | The message id. |
| FromMe | boolean | Yes | true if you sent the message. |
| Star | boolean | Yes | true to star, false to unstar. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/chat/star" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Chat": "[email protected]",
"Sender": "[email protected]",
"Id": "3EB0ABCDEF1234567890",
"FromMe": false,
"Star": true
}'