Closed stackmanoj closed 11 months ago
Describe the bug I want to send a message with line break. As per whatsapp API guide line we can send \n in message for line break. I have tried this in postman directly there it is working but not working with this nuget.
To Reproduce Steps to reproduce the behavior:
I am calling send message like
TextMessageReplyRequest request = new(); request.To = "phone numbe"; request.Text = new WhatsAppText(); request.Text.Body = "Hello,\nWelcome here"; request.Text.PreviewUrl = false; _whatsAppBusinessClient.SendTextMessageAsync(request);
Expected behavior This message should be delivered in two lines. but it delivered like Hello,\nWelcome here
Problem I think this is serialization problem. I have checked in fiddler, in json this message is serialized as Hello,\nWelcome here
Describe the bug I want to send a message with line break. As per whatsapp API guide line we can send \n in message for line break. I have tried this in postman directly there it is working but not working with this nuget.
To Reproduce Steps to reproduce the behavior:
I am calling send message like
Expected behavior This message should be delivered in two lines. but it delivered like Hello,\nWelcome here
Problem I think this is serialization problem. I have checked in fiddler, in json this message is serialized as Hello,\nWelcome here