Some of the features available in most instant messengers are not available in WhatsApp. However, Meta is working on adding them to the application successively, as exemplified by the latest update that adds the ability to edit messages in WhatsApp.

To edit a message, hold it and select the appropriate option from the pop-up menu. It is worth noting, however, that only some of the messages will be able to be edited, because WhatsApp has set a restriction on editing messages. Their content can only be modified within the first 15 minutes of sending them. After editing, an appropriate message will appear in the application informing about it, which will be located next to the confirmation of reading the message.

source