API query. How to do?

Immediately please do not throw tomatoes at me,I'm a noob.
I have a VK bot in php, template messages like this
if ($message == 'Message') {

$vk->sendMessage($peer_id, "Response message");
How to make instead of an answer sent to the api request?
Please help!
March 23rd 20 at 19:28
1 answer
March 23rd 20 at 19:30
And what your your answer sent through in the request is different from API request sending the answer?
Yes the correct answer does

Find more questions by tags API