Yes! Using template id in flow id
In template, we just configure the text template with variable and sender id
What exactly did you configure? Please share a screenshot
SMS content, variables, Sender ID
Thanks let me check
Thank you!
is this set as the default template?
Yes!
And you still get the same error? Please share the new details
Yes! Same error
When I change the “recipients” to “mobiles” it works. Please the postman api call in the above screenshot
please share a screenshot. as well as the logs from the appwrite-worker-messaging container
[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
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
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.php
docker compose restart appwrite-worker-messaging
@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.
No. Because our messaging is designed to send any sms message, not just otp
This workaround works! Thank you so much @Steven. Much appreciate your support 👏🏻
What solution did you implement finally?
We are using SMS service from Msg91.
- Get Approval from DLT provider - Header/Sender ID and Template ID.
- Set Sender ID in Msg91 > SMS
- Set Template in Msg91 > SMS. Here the variable should be
otp
- Set Auth Key in Msg91 > Setting > Auth key.
- Set env in Appwrite.
Sender ID
from step 2.Auth Key
from Step 4.Flow ID
is theTemplate ID
from step 3. - Run this command from @Steven
docker compose restart appwrite-worker-messaging```
Please create a new <#1072905050399191082> post
[CLOSED] msg91 does not work for otp
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...