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 事件的类型。 有关详细信息,请参阅 Webhook 事件的 Facebook 列表。
- tag
- String
可选的消息标记字符串。 请参阅 https://developers.facebook.com/docs/messenger-platform/send-messages/message-tags。
- notificationType
- String
可选通知类型:REGULAR (默认值) 、SILENT_PUSH、NO_PUSH。
- personaId
- String
角色 ID。
- senderAction
- String
要向用户显示的消息状态:typing_on、typing_off mark_seen。 不能使用“message”发送。 使用时,“recipient”应是请求中唯一设置的其他属性。
- senderId
- String
发件人 ID。