Edit or delete messages – Slack Help Center

Edit your file commentDesktop iOS Android Windows PhoneHover over the file with the comment you’d like to edit.Click the Add Comment button to expand all comments in the right info pane.Hover over a comment, then click the  gear icon. Click Edit comment.

Source: Edit or delete messages – Slack Help Center