EditC2cMsgBody
https://zim-api.zego.im/
The ZIM server supports developers to edit sent one-to-one or group chat messages.
After successfully editing a message, the message sent callback will be triggered. At the same time, the message receiving user can receive the message edited notification through the following ZIM SDK callback interfaces.
| iOS | Android | macOS | Windows |
|---|---|---|---|
| messageEdited | onMessageEdited | messageEdited | onMessageEdited |
| Web | Mini Program | Flutter | React Native |
|---|---|---|---|
| messageEdited | messageEdited | onMessageEdited | messageEdited |
| uni-app | uni-app x | HarmonyOS |
|---|---|
| messageEdited | messageEdited |
A single call can only modify one message in one conversation at a time.
By default, only messages sent within 24 hours are supported. If you need to edit earlier historical messages, please contact ZEGOCLOUD Technical Support for configuration.
Request
Query Parameters
Possible values: [EditC2cMsgBody, EditGroupMsgBody]
API prototype parameter
https://zim-api.zego.im/?Action=EditC2cMsgBody or https://zim-api.zego.im/?Action=EditGroupMsgBody
💡Public parameter. Application ID, assigned by ZEGOCLOUD. Get it from the ZEGOCLOUD Admin Console.
💡Public parameter. A 16-character hexadecimal random string (hex encoding of 8-byte random number). Refer to Signature example for how to generate.
💡Public parameter. Current Unix timestamp, in seconds. Refer to Signature example for how to generate, with a maximum error of 10 minutes.
Possible values: [2.0]
Default value: 2.0
💡Public parameter. Signature version number.
💡Public parameter. Signature, used to verify the legitimacy of the request. Refer to Signing the requests for how to generate an API request signature.
- application/json
Responses
- 200
- application/json
