Great question — answering as the UphillTech team:
WhatsApp message templates can contain line breaks but you need to make sure that the message contains the very same content -- including the same kind of line break ( \n vs \r vs \n\r ). Another way of achieving the same result, is by using the Content Editor and the Content API . This way you can define your templates in the Twilio Console and reference their SID in the program code. // Download the helper library from https://www.twilio.com/docs/node/install // Find your Account SID and Auth Token at twilio.com/console // and set the environment variables. See http://twil.io/secure const accountSid = process.env.TWILIO_ACCOUNT_SID; const authToken = process.env.TWILIO_AUTH_TOKEN; const...
Full answer by IObert: https://stackoverflow.stackexchange.com/a/76704631 (CC BY-SA 4.0).
Need it done for your business? UphillTech.