ioBroker / ioBroker.whatsapp-cmb

Allows to send to your whatsapp the messages from ioBroker
MIT License
12 stars 6 forks source link

Not all errors are reported when sending message #153

Closed Sneak-L8 closed 3 months ago

Sneak-L8 commented 6 months ago

Describe the bug
If your number gets paused for whatever reason, no error is shown when trying to send a message.

To Reproduce

Expected behavior
I expect an error in log.

Versions:

Additional context
Error codes from the API: 201 - wrong parameters 202 - your number is banned 203 - APikey is incorrect 209 - phone number is permanent banned 204 - Too many messages sent (API overflow for the phone number) 205 - Unknown error. 207 - Service is down 208 - Your number is in Pause. 209 - Quota exceeded 210 - Messaged queued to be sent later

Sneak-L8 commented 6 months ago

@Apollon77 I fixed it and created and PR.

Apollon77 commented 3 months ago

Thank you, will be in next version