Messages
Edit Message
POST
/api/v1/chat/send/editEdit a text message you sent.
Parameters
- PhonestringRequired
The chat the message is in: phone number or chat id.
- IdstringRequired
The id of the message to edit.
- BodystringRequired
The new text.
- MentionAllbooleanOptional
In a group, mention every member without showing their numbers.
| Name | Type | Required | Description |
|---|---|---|---|
| Phone | string | Yes | The chat the message is in: phone number or chat id. |
| Id | string | Yes | The id of the message to edit. |
| Body | string | Yes | The new text. |
| MentionAll | boolean | No | In a group, mention every member without showing their numbers. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/chat/send/edit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Phone": "923001234567",
"Id": "3EB0ABCDEF1234567890",
"Body": "Corrected text"
}'