Fix constructors

This commit is contained in:
Rubenlagus 2017-05-07 13:08:11 +02:00 committed by Ruben Bermudez
parent 5937a2e3a6
commit ca95a00b62
4 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ public class SendChatAction extends BotApiMethod<Boolean> {
this.action = checkNotNull(action); this.action = checkNotNull(action);
} }
public SendChatAction(Integer chatId, String action) { public SendChatAction(Long chatId, String action) {
this.chatId = checkNotNull(chatId).toString(); this.chatId = checkNotNull(chatId).toString();
this.action = checkNotNull(action); this.action = checkNotNull(action);
} }

View File

@ -56,7 +56,7 @@ public class SendMessage extends BotApiMethod<Message> {
this.text = checkNotNull(text); this.text = checkNotNull(text);
} }
public SendMessage(Integer chatId, String text) { public SendMessage(Long chatId, String text) {
this.chatId = checkNotNull(chatId).toString(); this.chatId = checkNotNull(chatId).toString();
this.text = checkNotNull(text); this.text = checkNotNull(text);
} }

View File

@ -65,7 +65,7 @@ public class SendVideoNote extends PartialBotApiMethod<Message> {
* @param chatId Chat Id to send the video note * @param chatId Chat Id to send the video note
* @param videoNote Video note file_id to send * @param videoNote Video note file_id to send
*/ */
public SendVideoNote(Integer chatId, String videoNote) { public SendVideoNote(Long chatId, String videoNote) {
this.chatId = checkNotNull(chatId).toString(); this.chatId = checkNotNull(chatId).toString();
this.videoNote = checkNotNull(videoNote); this.videoNote = checkNotNull(videoNote);
this.isNewVideoNote = false; this.isNewVideoNote = false;

View File

@ -48,7 +48,7 @@ public class DeleteMessage extends BotApiMethod<Boolean> {
this.messageId = checkNotNull(messageId); this.messageId = checkNotNull(messageId);
} }
public DeleteMessage(Integer chatId, Integer messageId) { public DeleteMessage(Long chatId, Integer messageId) {
this.chatId = checkNotNull(chatId).toString(); this.chatId = checkNotNull(chatId).toString();
this.messageId = checkNotNull(messageId); this.messageId = checkNotNull(messageId);
} }