How to send video vk api messages.php send?

$request_params = array(
 'message' => $answer_text,
 'random_id' => rand(1, 999999),
 'user_id' => $user_id,
 'attachment' => 'video-189353548_456239010',
 'access_token' => $token,
 'v' => '5.103'
);
 $get_params = http_build_query($request_params);
 file_get_contents("https://api.vk.com/method/messages.send?". $get_params);

Everything works fine when in the attachment picture...
When video: 5e4064e8204f1146433543.jpeg

However, I checked it out here (at end of page for form validation method), and the video went....
April 7th 20 at 10:53
2 answers
April 7th 20 at 10:55
Maybe fingers in the sky, but from who uploaded the video? VC can be sensitive when the video is loaded on behalf of the community, which is based on bot
On behalf of the community uploaded a video and send - Felicity_Hickle19 commented on April 7th 20 at 10:58
April 7th 20 at 10:57
video-189353548_456239010
- not true
video189353548_456239010
right

https://vk.com/dev/messages.send
Field Attachment read carefully. Well, accessKey is also desirable to pass
All right I have defis write when the group ID and not the user himself read carefully, I asked the question not because of a typo, there is another approach needed...
There is a theory that you need to upload videos via the api, I hope it is correct... - Felicity_Hickle19 commented on April 7th 20 at 11:00
@Felicity_Hickle19, hmm, Yes indeed.
And about the video, do you have another way of booting the video is not using VK api? - joell commented on April 7th 20 at 11:03
@joell, uploaded the video through the site and copied the ID from the address bar... For photo work if the photo is not limited to private settings... - Felicity_Hickle19 commented on April 7th 20 at 11:06
@Felicity_Hickle19and accesskey passed? - joell commented on April 7th 20 at 11:09
Try to find him again... Poidee it is necessary to take from the newsfeed... But for a specific video, it's kind of useless - Felicity_Hickle19 commented on April 7th 20 at 11:12
@Felicity_Hickle19, uh, contains the accesskey attribute in the object video
https://vk.com/dev/objects/video
Field access_key - joell commented on April 7th 20 at 11:15

Find more questions by tags PHPAPIVKontakte