This isn't the API we use for phone auth
MSG91 INTEGRATION
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 4: Virtual Machine
here is the payload
{
"tokenAuth": "token",
"widgetId": "33696f706847393734343735",
"identifier": "917019698895",
"token": "mytoken"
}
Rank 4: Virtual Machine
which is the api appwrite is using?
Rank 4: Virtual Machine
ohhk this this for normal message
Rank 4: Virtual Machine
which requires DLT registration in INDIA
Rank 4: Virtual Machine
Rank 4: Virtual Machine
also what should be added in the content field?
Rank 4: Virtual Machine
@Steven is phone auth working in appwrite cloud?
Rank 4: Virtual Machine
appwrite should be using this https://api.msg91.com/apidoc/sendotp/send-otp.php
Yes
We want to be able to send anything, not just integer
Rank 4: Virtual Machine
ohk makes sense
Rank 4: Virtual Machine
but the message template should be showing in the appwrite integration docs
Rank 4: Virtual Machine
without the template approval we cannot send the messsages for selfhosted
What do you mean?
Rank 4: Virtual Machine
check this https://www.youtube.com/watch?v=spg_TwW-vJE
Rank 4: Virtual Machine
this is the process to add messaging template without registering the template the messages wont be sent
Ok and?
Rank 4: Virtual Machine
so what is the default appwrite otp template?
There is none. It's on you to register whatever with msg91
Rank 4: Virtual Machine
ohhk so appwrite sends the otp as variable?
https://github.com/utopia-php/messaging/blob/2d0f474a106bb1da285f85e105c29b46085d3a43/src/Utopia/Messaging/Adapters/SMS/Msg91.php#L55C18-L55C18
Rank 4: Virtual Machine
@Steven i feel the code should be updated according to this https://docs.msg91.com/reference/send-sms
Rank 4: Virtual Machine
the body is
{ "template_id":"EntertemplateID", "short_url": "1 (On) or 0 (Off)", "recipients" : [ { "mobiles":"919XXXXXXXXX", "VAR1": "VALUE1", "VAR2": "VALUE2" } ] }
Rank 4: Virtual Machine
the otp variable needs to be included in the recipient's array