Rank 2: Process
Yes! Using template id in flow id
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Yes! Using template id in flow id
Rank 2: Process
In template, we just configure the text template with variable and sender id
Admin
What exactly did you configure? Please share a screenshot
Rank 2: Process
Rank 2: Process
SMS content, variables, Sender ID
Admin
Thanks let me check
Rank 2: Process
Thank you!
Admin
is this set as the default template?
Rank 2: Process
Yes!
Admin
And you still get the same error? Please share the new details
Rank 2: Process
Yes! Same error
Rank 2: Process
When I change the “recipients” to “mobiles” it works. Please the postman api call in the above screenshot
Admin
please share a screenshot. as well as the logs from the appwrite-worker-messaging container
Rank 2: Process
[notice] Starting worker cc64ffd05239:7:v1-messaging
[notice] Starting work on (Job{v1-messaging} | ID: 87fd6622bada1074361831fcaafb6bc9 | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+91123456789","message":"325347","events":["."]}])
[notice] (Job{v1-messaging} | ID: 87fd6622bada1074361831fcaafb6bc9 | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+91123456789","message":"325347","events":["."]}]) has finished
Rank 2: Process
Admin
thanks. let me get this to the team. they're offline by now, though, so they won't be able to get to this until monday
Admin
although maybe you can try this:
docker compose exec appwrite-worker-messaging sed -i 's#\[$to\]#$to#g' /usr/src/code/vendor/utopia-php/messaging/src/Utopia/Messaging/Adapters/SMS/Msg91.phpdocker compose restart appwrite-worker-messagingRank 2: Process
@Steven if possible can you discuss with the team to implement the send otp api (https://docs.msg91.com/reference/sendotp) instead of flow? send otp is specifically for authentication whereas flow/campaign is for transactional sms. The OTP sms has higher priority than transactional sms.
Admin
No. Because our messaging is designed to send any sms message, not just otp
Rank 2: Process
This workaround works! Thank you so much @Steven. Much appreciate your support 👏🏻
Rank 2: Process
What solution did you implement finally?
Rank 2: Process
We are using SMS service from Msg91.
otpSender ID from step 2. Auth Key from Step 4. Flow ID is the Template ID from step 3.docker compose restart appwrite-worker-messaging```Admin
Please create a new #channel post
Admin
Admin
[CLOSED] msg91 does not work for otp