There is a code that publishes a photo on the wall, how to remake it for publishing a document?

$post = vk('wall.post', [ 'owner_id' => '-'.$group_id, 'access_token' => $access_token, 'from_group' => 1, 'message' => $message, 'attachments' => 'photo'.$save->owner_id.'_'.$save->id, 'v' => '5.85' ]); 

I uploaded the document to the group, but I can't send it to the wall .. I tried changing the photo to doc according to the documentation, but the document did not appear on the wall.

0