It seems to have figured out the VC API, but I can’t check for the presence of the link application type in the message. I try this:

case 'message_new': $product = $data->object->attachments["type"]; if(isset($product)) { //Если товар отправлен 

But it does not come out. And how do I do not know, support is silent for many days. Can you tell me?

  • and what in $ product gets? - Naumov
  • {"type": "message_new", "object": {"message description", "attachments": [{"type": "link", "link": {"product description"}]}, "group_id": 88053972}. Such a request is sent to the server when receiving a message with the goods. That is, I check what type of link. I understand a little bit in php, yes. - N. Matrosoff
  • json_decode done? - Naumov
  • I do not understand * No, I did not. There from the description of the message in the same way other data are taken without decode. And then you need? - N. Matrosoff

0