gabrieldwight / Whatsapp-Business-Cloud-Api-Net

This is C# wrapper of whatsapp business cloud api for .NET
MIT License
283 stars 104 forks source link

[Information]Whatsapp error (#100) Invalid parameter on phone number #31

Closed Tekkharibo closed 1 year ago

Tekkharibo commented 1 year ago

Hi,

Since the 2023 January 23 I can't send any message with the lib because I have the error (#100) Invalid parameter

I have found why I have this error.

The international phone number can write with two typing (French number for example)

But the Whatsapp API, since this date don't allow the format 0033 6 xx xx xx xx

I think that was interested to add this information on the README.md

Regards

gabrieldwight commented 1 year ago

Hi, for the French number does it work to send a message using this format 33 6 xx xx xx xx?

Is it returning an invalid phone number under the error data property in the details property?

Regards

Tekkharibo commented 1 year ago

Yes the format 33 6 xx xx xx xx work fine ;)

With the 0033 6 xx xx xx xx format I just have (#100) Invalid parameter and Parameter Invalid on whatsAppErrorResponse.Error.ErrorData/Details

image

Regards

gabrieldwight commented 1 year ago

That's fine. I will add to the readme this information where it applies to any number format with the prefix 00 before the country code will through the invalid parameter error.