rohit-chouhan / whatsapp

A package for whatsapp business api, send messages, product, media, location through flutter app.
https://pub.dev/packages/whatsapp
MIT License
24 stars 18 forks source link

Problems using: Send text message #9

Closed luciano-da-cruz-jr closed 1 year ago

luciano-da-cruz-jr commented 1 year ago

send text message 💬 Send the text message to the customer.

to- the phone number with the country code, but without the plus sign (+). message- the message to be sent. previewUrl- is used to preview the URL in the chat window.

whatsapp.messagesTemplate(
to: 910000000000,
message: "Hey Flutter, follow me on https://example.com",
previewUrl: true
);

The message does not send.

Actually, it's correct to use:

whatsapp.messagesText(
to: 910000000000,
message: "Hey Flutter, follow me on https://example.com",
previewUrl: true
);

But I still can't send it!

My friends could help me please, thanks in advance!

image

rohit-chouhan commented 1 year ago

function always return a status, please check what message you are getting and share screenshot. Thanks,