AttachmentPayload 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.
Caution
The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.
Inner Facebook Attachment payload that can be sent as part of a Facebook Attachment on a Facebook message.
[System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")]
public class AttachmentPayload
[<System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")>]
type AttachmentPayload = class
Public Class AttachmentPayload
- Inheritance
-
AttachmentPayload
- Attributes
Constructors
AttachmentPayload() |
Properties
AttachmentId |
Gets or sets the ID of the attachment (for reusable attachments). |
Buttons |
Gets a list of buttons of the template. |
Elements |
Gets a list of media elements of the template. |
IsReusable |
Gets or sets a value indicating whether the attachment is reusable or not. Default false. |
TemplateType |
Gets or sets the type of the template attached. |
Text |
Gets or sets the text of the template. |
Url |
Gets or sets the URL of the attachment. |
Methods
ShouldSerializeButtons() |
Newtonsoft JSON method for conditionally serializing the Buttons property. |
ShouldSerializeElements() |
Newtonsoft JSON method for conditionally serializing the Elements property. |
ShouldSerializeIsReusable() |
Newtonsoft JSON method for conditionally serializing the IsReusable property. |