D
D
dedulka2017-06-25 08:42:55
PHP
dedulka, 2017-06-25 08:42:55

Why aren't viber message hooks coming?

Good afternoon.
I did everything according to the instructions and this
Registration of the token passes, I get the reverse hook.

(
  'event' => 'webhook',
  'timestamp' => '1498367143639',
  'message_token' => '****')

But when someone writes to the public, or enters or exits, there are no hooks.
What could be the problem?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2018-07-06
@02pov57

Do you track events? For example:

....
$request = file_get_contents("php://input");
$input = json_decode($request, true);
  
  if ($input['event'] == 'message' ) {		
  //какие-то действия
  }elseif ($input['event'] == 'delivered') {
.....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question