Template Form Message #64
-
Hi, Alson, this happens when I run the following code in Postman: Error: What am I missing here? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I guess you are trying to send a flow template message. You can try to use this function SendFlowMessageTemplateAsync FlowTemplateMessageRequest flowTemplateMessageRequest = new FlowTemplateMessageRequest();
flowTemplateMessageRequest.To = "phonenumber";
flowTemplateMessageRequest.Template = new();
flowTemplateMessageRequest.Template.Name = "template name";
flowTemplateMessageRequest.Template.Language = new();
flowTemplateMessageRequest.Template.Language.Code = LanguageCode.English_US;
flowTemplateMessageRequest.Template.Components = new List<FlowMessageComponent>()
{
new FlowMessageComponent()
{
Type = "button",
SubType = "flow",
Index = 0,
Parameters = new List<FlowTemplateMessageParameter>()
{
new FlowTemplateMessageParameter()
{
Type = "action",
Action = new FlowTemplateMessageAction()
{
FlowToken = "",
}
}
}
}
};
var results = await _whatsAppBusinessClient.SendFlowMessageTemplateAsync(flowTemplateMessageRequest); |
Beta Was this translation helpful? Give feedback.
Hi, I guess you are trying to send a flow template message. You can try to use this function SendFlowMessageTemplateAsync