diff --git a/src/main/java/ru/dmitriymx/vkapi/VkApi.java b/src/main/java/ru/dmitriymx/vkapi/VkApi.java index c8199af..09d5bf4 100644 --- a/src/main/java/ru/dmitriymx/vkapi/VkApi.java +++ b/src/main/java/ru/dmitriymx/vkapi/VkApi.java @@ -76,7 +76,7 @@ public class VkApi implements Runnable { .build()); } - public LongPollListener getLongPollListener() throws IOException { + public LongPollListener createLongPollListener() throws IOException { JsonObject jsonObject = execApi("messages.getLongPollServer", Collections.singletonMap("need_pts", "1")); jsonObject = jsonObject.getAsJsonObject("response");