MessageExtensionActivityPreview Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an activity preview used in BotMessagePreview responses. Teams renders this as a card preview before the user confirms sending. On the inbound side, Teams echoes this back via BotActivityPreview when the user clicks 'send' or 'edit'.
public class MessageExtensionActivityPreview
type MessageExtensionActivityPreview = class
Public Class MessageExtensionActivityPreview
- Inheritance
-
MessageExtensionActivityPreview
Constructors
| Name | Description |
|---|---|
| MessageExtensionActivityPreview() | |
Properties
| Name | Description |
|---|---|
| Attachments |
The attachments (cards) to show in the preview. |
| Type |
The activity type. Defaults to "message". |
Methods
| Name | Description |
|---|---|
| AddAttachment(TeamsAttachment[]) |
Adds one or more attachments to the preview. |