R
R
rusgayfer2017-06-04 20:11:30
In contact with
rusgayfer, 2017-06-04 20:11:30

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

1 answer(s)
S
Serezha, 2017-06-04
@rusgayfer

Well, you apply the function to $message urlencode, but not to the rest of the text.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question