diff --git a/pom.xml b/pom.xml index 28f4ba9c..32487183 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.yvasyliev java-vk-bots-longpoll-api jar - 1.5.2 + 1.5.1 Java VK Bots Long Poll API A Java library to create VK bots using Bots Long Poll API diff --git a/src/main/java/api/longpoll/bots/model/events/messages/MessageEvent.java b/src/main/java/api/longpoll/bots/model/events/messages/MessageEvent.java index da389a81..f4ccab5c 100644 --- a/src/main/java/api/longpoll/bots/model/events/messages/MessageEvent.java +++ b/src/main/java/api/longpoll/bots/model/events/messages/MessageEvent.java @@ -1,7 +1,6 @@ package api.longpoll.bots.model.events.messages; import api.longpoll.bots.model.events.EventObject; -import com.google.gson.JsonObject; import com.google.gson.annotations.SerializedName; /** @@ -30,7 +29,7 @@ public class MessageEvent implements EventObject { * Additional info. */ @SerializedName("payload") - private JsonObject payload; + private String payload; /** * Message ID. @@ -62,11 +61,11 @@ public void setEventId(String eventId) { this.eventId = eventId; } - public JsonObject getPayload() { + public String getPayload() { return payload; } - public void setPayload(JsonObject payload) { + public void setPayload(String payload) { this.payload = payload; }