FacebookMessage 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 FacebookMessage 類別的新執行個體。
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)
參數
- recipientId
- String
收件人ID欄位的內容。
- message
- Message
訊息欄位的內容。
- messagingType
- String
Webhook事件的類型。 欲了解更多資訊,請參閱 Facebook Webhook 活動列表。
- tag
- String
可選的訊息標籤字串。 參見 https://developers.facebook.com/docs/messenger-platform/send-messages/message-tags。
- notificationType
- String
可選的通知類型有:REGULAR(預設值)、SILENT_PUSH、NO_PUSH。
- personaId
- String
Persona ID。
- senderAction
- String
訊息狀態顯示給使用者:typing_on、typing_off、mark_seen。 不能用「訊息」傳送。 使用時,「收件人」應是請求中唯一設定的其他屬性。
- senderId
- String
寄件人識別碼。