FacebookMessage Constructor
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.
Initializes a new instance of the FacebookMessage class.
public FacebookMessage (string recipientId, Microsoft.Bot.Builder.Adapters.Facebook.Message message, string messagingType, string tag = default, string notificationType = default, string personaId = default, string senderAction = default, string senderId = default);
new Microsoft.Bot.Builder.Adapters.Facebook.FacebookMessage : string * Microsoft.Bot.Builder.Adapters.Facebook.Message * string * string * string * string * string * string -> Microsoft.Bot.Builder.Adapters.Facebook.FacebookMessage
Public Sub New (recipientId As String, message As Message, messagingType As String, Optional tag As String = Nothing, Optional notificationType As String = Nothing, Optional personaId As String = Nothing, Optional senderAction As String = Nothing, Optional senderId As String = Nothing)
Parameters
- recipientId
- String
Contents of the recipient ID field.
- message
- Message
Contents of the message field.
- messagingType
- String
The type of webhook event. For more information, see the Facebook List of Webhook Events.
- tag
- String
The optional message tag string. See https://developers.facebook.com/docs/messenger-platform/send-messages/message-tags.
- notificationType
- String
The optional notification type: REGULAR (default value), SILENT_PUSH, NO_PUSH.
- personaId
- String
The persona ID.
- senderAction
- String
Message state to display to the user: typing_on, typing_off, mark_seen. Cannot be sent with 'message'. When used, 'recipient' should be the only other property set in the request.
- senderId
- String
The sender ID.