How to remove the messages from Vkontakte the text mentions the bot?

There is a bot in php. At the mention of it in conversation, does the text of the message that is sent upside down. Taken as the text mentions, but I don't need it. Tell me how to fix it, or using a crutch just to remove the first character?
5df25b650e792844268786.png
Main parts of code:
$id = $data->object->from_id; 
$peer_id = $data->object->peer_id; 
$message = $data->object->text;
if ($data->type == 'message_new') { 
 $vk->sendMessage($peer_id, $message)); 
 }
April 3rd 20 at 17:41
2 answers
April 3rd 20 at 17:43
April 3rd 20 at 17:45
Little information looks like a message bot.
If all of the @ symbol (the dog), then just:
$id = $data->object->from_id;
$peer_id = $data->object->peer_id;
$message = $data->object->text;
$peer_id = str_replace("looking for"what change",$peer_id );
if ($data->type == 'message_new') {
$vk->sendMessage($peer_id, $message));
}

Find more questions by tags PHPVKontakteBots