src/VkCommunityCallbackDriver.php
/**
     * @param IncomingMessage $matchingMessage
     * @return Response
     * @throws VKDriverException
     */
@param IncomingMessage $matchingMessage
@return Response
@throws VKDriverException
@param IncomingMessage $matchingMessage @return Response @throws VKDriverException
public function markSeen(IncomingMessage $matchingMessage)
    {
        $messageObject = $this->extractPrivateMessageFromPayload($matchingMessage->getPayload());
        if ($messageObject === false) {
            throw new VKDriverException('Cannot extract message from events of type ' . $matchingMessage->getPayload()->get['type']);
        }
        $messageId = $messageObject['id'];
        if($this->isConversation()){
            return $this->api("messages.markAsRead", [
                "start_message_id" => $messageId,
                "mark_conversation_as_read" => 1,
                "peer_id" => $matchingMessage->getRecipient()
            ]);
        }
        return $this->api("messages.markAsRead", [
            "start_message_id" => $messageId,
            "peer_id" => $matchingMessage->getRecipient()
        ]);
    }
public function markSeen ( IncomingMessage $ matchingMessage ) { $ messageObject = $ this -> extractPrivateMessageFromPayload ( $ matchingMessage -> getPayload ( ) ) ; if ( $ messageObject === false ) { throw new VKDriverException ( 'Cannot extract message from events of type ' . $ matchingMessage -> getPayload ( ) -> get [ 'type' ] ) ; } $ messageId = $ messageObject [ 'id' ] ; if ( $ this -> isConversation ( ) ) { return $ this -> api ( " messages.markAsRead " , [ " start_message_id " => $ messageId , " mark_conversation_as_read " => 1 , " peer_id " => $ matchingMessage -> getRecipient ( ) ] ) ; } return $ this -> api ( " messages.markAsRead " , [ " start_message_id " => $ messageId , " peer_id " => $ matchingMessage -> getRecipient ( ) ] ) ; }
@param IncomingMessage $matchingMessage
 @return Response
 @throws VKDriverException
@param IncomingMessage $matchingMessage @return Response @throws VKDriverException
// Worked only with conversations created by the community // message_ids is deprecated