diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/ResponseParameters.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/ResponseParameters.java index fb6915a5..68191090 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/ResponseParameters.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/ResponseParameters.java @@ -38,7 +38,7 @@ public class ResponseParameters implements BotApiObject { * so a signed 64 bit integer or double-precision float type are safe for storing this identifier. */ @JsonProperty(MIGRATETOCHATID_FIELD) - private Integer migrateToChatId; + private Long migrateToChatId; /** * Optional. In case of exceeding flood control a number of seconds to * wait before the request can be repeated @@ -50,7 +50,7 @@ public class ResponseParameters implements BotApiObject { super(); } - public Integer getMigrateToChatId() { + public Long getMigrateToChatId() { return migrateToChatId; } diff --git a/telegrambots-meta/src/test/java/org/telegram/telegrambots/test/TestDeserialization.java b/telegrambots-meta/src/test/java/org/telegram/telegrambots/test/TestDeserialization.java index 37c92ea9..9968df5b 100644 --- a/telegrambots-meta/src/test/java/org/telegram/telegrambots/test/TestDeserialization.java +++ b/telegrambots-meta/src/test/java/org/telegram/telegrambots/test/TestDeserialization.java @@ -59,7 +59,7 @@ public class TestDeserialization { Assert.assertEquals(Integer.valueOf(400), result.getErrorCode()); Assert.assertEquals("Error descriptions", result.getErrorDescription()); Assert.assertNotNull(result.getParameters()); - Assert.assertEquals(Integer.valueOf(12345), result.getParameters().getMigrateToChatId()); + Assert.assertEquals(Long.valueOf(12345), result.getParameters().getMigrateToChatId()); Assert.assertEquals(Integer.valueOf(12), result.getParameters().getRetryAfter()); }