File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/main/java/api/longpoll/bots Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 66 <groupId >com.github.yvasyliev</groupId >
77 <artifactId >java-vk-bots-longpoll-api</artifactId >
88 <packaging >jar</packaging >
9- <version >4.1.6 </version >
9+ <version >4.1.7 </version >
1010 <name >Java VK Bots Long Poll API</name >
1111 <description >A Java library to create VK bots using Bots Long Poll API</description >
1212 <url >https://github.com/yvasyliev/java-vk-bots-long-poll-api</url >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public abstract class LongPollBot extends VkBot {
3232 /**
3333 * Latest received event.
3434 */
35- private int ts ;
35+ private Integer ts ;
3636
3737 /**
3838 * Whether infinite loop should be continued.
@@ -97,7 +97,9 @@ public void initialize() throws VkApiException {
9797
9898 server = longPollServer .get ("server" ).getAsString ();
9999 key = longPollServer .get ("key" ).getAsString ();
100- ts = longPollServer .get ("ts" ).getAsInt ();
100+ if (ts == null ) {
101+ ts = longPollServer .get ("ts" ).getAsInt ();
102+ }
101103 }
102104
103105 /**
You can’t perform that action at this time.
0 commit comments