Open Microsoft Teams and navigate to the chat or channel where you want to edit a message.
Locate the message that you want to edit. Hover your mouse over the message, and you will see a set of icons appear on the right side of the message.
Click on the three-dot icon (ellipsis) that appears on the right side of the message when you hover over it.
From the menu that appears, select "Edit" option. Alternatively, you can also use the keyboard shortcut "Ctrl + Shift + E" (Windows) or "Command + Shift + E" (Mac) to start editing the message.
Once you select the "Edit" option, the message will transform into an editable textbox. Make the necessary changes or corrections to the message.
After making your edits, press Enter or click outside the textbox to save the changes.
The edited message will be updated in the chat or channel, and it will display an "Edited" label next to it to indicate that it has been modified.