Microsoft Teams Bot icon

Microsoft Teams Bot

Send messages and cards via Microsoft Teams Bot

Message → Undo Delete

AI-generated

Summary

Restore a soft-deleted message in a Teams chat or channel using Microsoft Graph. Select the recipient type and provide the message ID plus the chat ID, or the team ID and channel ID, to identify the message.

Inputs

  • recipientType (required) — Choose Chat (Direct Message) or Channel to select where the message is located.
  • chatId (required) — ID of the chat containing the message; used when recipient type is Chat.
  • messageId (required) — ID of the soft-deleted message to restore.
  • teamId (required) — ID of the team containing the channel; used when recipient type is Channel.
  • channelId (required) — ID of the channel containing the message; used when recipient type is Channel.

Output shape

A single item containing the API response for the restore operation.

The operation calls Microsoft Graph to undo the soft deletion. The response may be empty if Graph returns no content.

Links

Discussion