diff --git a/README.md b/README.md index 90a257c..515d58c 100755 --- a/README.md +++ b/README.md @@ -280,7 +280,7 @@ class CallbackApiMyHandler extends VK\CallbackApi\VKCallbackApiHandler { ``` To start listening to LongPoll events, create an instance of your CallbackApiMyHandler class, instance of -VK\CallbackApi\LongPoll\VKCallbackApiLongPollExecutor class and call method listen(): +VK\CallbackApi\VKCallbackApiLongPollExecutor class and call method listen(): ```php $vk = new \VK\Client\VKApiClient(); @@ -345,8 +345,7 @@ $data = json_decode(file_get_contents('php://input')); $handler->parse($data); ``` -To handle events you need to override methods from VK\CallbackApi\Server\VKCallbackApiServerHandler class as shown +To handle events you need to override methods from VK\CallbackApi\VKCallbackApiServerHandler class as shown above. `confirmation` event handler has 2 arguments: group id, and secret key. You need to override this method. - diff --git a/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php b/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php index 87a3622..26c831f 100644 --- a/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php +++ b/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php @@ -1,6 +1,6 @@