A
A
Albert2017-07-13 13:19:13
PHP
Albert, 2017-07-13 13:19:13

Why aren't stickers sent?

Stickers are not sent by the message.sent method.
Code:
$user_att = $data->object->attachments[0]->type;
if ($user_att == "sticker") {
$sticker_id = $data->object->attachments[0]->$user_att->id;
$request_params = array(
'message' => "gg" ,
'user_id' => 6738827,
'sticker_id' => $sticker_id,
'access_token' => token here,
'v' => '5.65'
);
$get_params = http_build_query($request_params);
file_get_contents(' https://api.vk.com/method/messages.send? '. $get_params);
}
There are no errors, the method succeeds, an ellipsis (...) is sent instead of a sticker. What's
the problem ?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2017-07-13
@Albert99

On behalf of the group? They were not bought from the creator of the token, so they do not send them.
You can buy the necessary stickers on the page of the administrator who created the token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question