Update Message
    • Dark
      Light
    • PDF

    Update Message

    • Dark
      Light
    • PDF

    Article summary

    Update a message.

    Method

    Requires Auth

    Permission

    Settings

    updateMessage

    Yes

    edit-message

    You need to consider two essential settings when deleting messages:

    • Message_AllowEditing: It is represented as a boolean (true/false), which determines whether message editing is permitted.

    • Message_AllowDeleting_BlockDeleteInMinutes: It is represented as an integer and offers more control over the edit functionality. When set to 0, editing is allowed without any time restrictions. However, if the value is greater than 0, there is a time-based restriction where editing is blocked/disabled after the specified duration has passed.

    Payload parameters

    Argument

    Example

    Required

    Description

    textMessageObject

    {
       "_id": "298gMs93982Le9A7pZjo2D2iB",
       "rid": "64a1f373376181965ab77f54",
       "msg": "Whats 4*!"
    }

    Required

    The Message Object containing only the updated msg.

    Example call

    {
        "msg": "method",
        "method": "updateMessage",
        "id": "42",
        "params": [{
            "_id": "298gMs93982Le9A7pZjo2D2iB",
            "rid": "64a1f373376181965ab77f54",
            "msg": "Whats 4*!"
    }]
            
    }
    

    Example response

    {
        "msg": "result",
        "id": "42"
    }


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence