Answer the question
In order to leave comments, you need to log in
Why is the message truncated when sent via vk api/curl (PHP)?
Greetings. Here is my code for sending a message via vk API + curl:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.vk.com/method/messages.send');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(['peer_id'=>$peer_id, 'message'=>$message, 'v'=>$v, 'access_token'=>$access_token]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
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