I
I
ivashjke2018-11-01 10:50:11
API
ivashjke, 2018-11-01 10:50:11

Viber API problem sending messages?

There is a public Viber account
There is a PHP script that collects some data from the table -> generates a message and sends it to this account
When you run the script from a browser, everything works properly, messages reach everyone who is subscribed
But if you run the script from the command line or via cron
All recipients have the same error
[status] => 999
[status_message] => Bad receiver ID
[message_token] => ********************
error descriptions in did not find documentation (apparently it appears as Other error code)
The script has to work on cron
Who faced or can ideas what is?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivashjke, 2018-11-02
@ivashjke

If someone suddenly encounters the same problem.
The problem turned out to be in the encoding
. In my case,
when generating messages, the strtoupper and substr functions were used.
Replacing with mb_strtoupper and mb_substr, respectively, fixed the situation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question