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.