Answer the question
In order to leave comments, you need to log in
Why is the message not sent by the messages. sensd?
When after "&message=" I write any text with spaces, the message does not come in the PM. If you remove the spaces and do everything together, then it works. What is the problem. I want to do this but it doesn't work&message=✉ {$group_name}:<br>{$message}
$message = urlencode($message);
// Постит в отложенные записи
$request = $main->requestVkAPI('wall.post', "owner_id=-{$groupId}&message={$message}&access_token={$tokenadmin}&attachments={$attachments}&publish_date={$timestamp}");
// Уведомляет через ВК
$request = $main->requestVkAPI('messages.send', "user_ids={$ownerId}&message=✉{$message}&attachment={$attachments}&access_token={$tokengroup}");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question