Yes, you can update and delete chat messages as well as delete and download attachments via the Microsoft Graph API.
Updating a Chat Message: To update a chat message, you can use the PATCH
request to the /chats/{chat-id}/messages/{message-id}
endpoint.
https://learn.microsoft.com/en-us/graph/api/chatmessage-update?view=graph-rest-1.0&tabs=http
Deleting a Chat Message: To delete a chat message, you can send a DELETE
request to the /chats/{chat-id}/messages/{message-id}
endpoint.
https://learn.microsoft.com/en-us/graph/api/chatmessage-softdelete?view=graph-rest-1.0&tabs=http
Downloading an Attachment: To download an attachment, you first need to get the attachment ID using a GET
request to the /chats/{chat-id}/messages/{message-id}/attachments
endpoint. Then, you can download the attachment using the GET
request to the /chats/{chat-id}/messages/{message-id}/attachments/{attachment-id}/$value
endpoint.
Deleting an Attachment: Currently, the Graph API does not support directly deleting an attachment from a chat message. You would need to update the message to remove the attachment reference.
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.