MessageExtensionResponseBuilder 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.
Builder for MessageExtensionResponse.
public class MessageExtensionResponseBuilder
type MessageExtensionResponseBuilder = class
Public Class MessageExtensionResponseBuilder
- Inheritance
-
MessageExtensionResponseBuilder
Constructors
| Name | Description |
|---|---|
| MessageExtensionResponseBuilder() | |
Methods
| Name | Description |
|---|---|
| Build(Int32) |
Builds the MessageExtensionResponse and wraps it in an InvokeResponse<TBody>. |
| WithActivityPreview(MessageExtensionActivityPreview) |
Sets the activity preview for BotMessagePreview responses. |
| WithAttachmentLayout(AttachmentLayoutType) |
Sets the attachment layout. See TeamsAttachmentLayouts for known values. |
| WithAttachments(TeamsAttachment[]) |
Sets the attachments for the response. |
| WithSuggestedActions(SuggestedActions) |
Sets suggested actions for Config responses. |
| WithText(String) |
Sets the text message for Message responses. |
| WithType(MessageExtensionResponseType) |
Sets the type of the response. See MessageExtensionResponseTypes for known values. |