Replies: 1 comment
-
After several hours of research, I finally find a solution to do what I need... This format actually works: However, newlines in the message cause problems when sending JSON to the WhatsApp API. My current solution is to create a custom API to act as a middle layer. I first send the data to my API using a format like: Then, my API processes the message, replacing any newlines in the message, then forwards it to the WhatsApp API. I’m not sure if there’s a simpler way, but I’m sharing this in case anyone else runs into the same issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently testing notifications (Apprise Notify WhatsApp) to send messages via WhatsApp when there are updates to a board.
What I would like to do is include a link to the updated card in the WhatsApp message. However, I’m not sure how to pass that link properly into the template.
Here's what I’ve tried so far:
This version works:
whatsapp://template:access_token@phone_id/targets/?:1=Dummy&:2=01 Jan, 1970
So, I attempted to replace :1=Dummy with :body=1 and :message=1 like this:
whatsapp://template:access_token@phone_id/targets/?:body=1&:2=01 Jan, 1970
whatsapp://template:access_token@phone_id/targets/?:message=1&:2=01 Jan, 1970
But neither of these worked, I failed to receive any message.
Could anyone help me figure out how to correctly pass the card link into the WhatsApp template message? I’d really appreciate any guidance.
Beta Was this translation helpful? Give feedback.
All reactions