This commit is contained in:
Ruben Bermudez 2018-04-01 12:37:28 +02:00
parent 7a83b45a91
commit b057a98ada
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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());
}