Do you mean you want to update or delete your message from Bot in Teams?
Our forum is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your question is more related to Azure Bot Service., which we do not support. The following suggestion is only for your reference.
In the Bot Framework, every message has its unique activity identifier. Messages can be deleted using the Bot Framework's DeleteActivity method. For more details about its code example, you could refer to:
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.