Clivern / Racter

:crocodile: A Java Framework for Building Bots on Facebook's Messenger Platform.
Apache License 2.0
20 stars 11 forks source link

Response is not deliverd if there is a newline character in the "text" response #74

Open lcbasu opened 3 years ago

lcbasu commented 3 years ago

Describe the bug The response is not delivered if there is a newline character in the "text" response

To Reproduce Steps to reproduce the behaviour: If we set the MessageTemplate to send a text reply where the text has a newline character, the response is not delivered.

INFO: curl -X POST -H "Content-Type: application/json" -d '{"recipient": {"id": "1234567890"},"message": {"text": "Reply with image answer. This is line number 1. The next line is a new line (Line number 2 is empty line).

This is line number 3."},"notification_type":"REGULAR"}

Expected behaviour The response should be submitted with a new line for every newline character.

Clivern commented 3 years ago

Hello @lcbasu,

Yeah i think you have to use \n\n or <center></center> for newlines to work with FB messenger API.