Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lcbasu opened this issue Sep 7, 2020 · 1 comment

Comments

@lcbasu
Copy link

lcbasu commented Sep 7, 2020

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
Copy link
Owner

Clivern commented Sep 9, 2020

Hello @lcbasu,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants