From ca95a00b626d6538815481d846141d211a01917b Mon Sep 17 00:00:00 2001 From: Rubenlagus Date: Sun, 7 May 2017 13:08:11 +0200 Subject: [PATCH] Fix constructors --- .../telegram/telegrambots/api/methods/send/SendChatAction.java | 2 +- .../org/telegram/telegrambots/api/methods/send/SendMessage.java | 2 +- .../telegram/telegrambots/api/methods/send/SendVideoNote.java | 2 +- .../api/methods/updatingmessages/DeleteMessage.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendChatAction.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendChatAction.java index cc8a36c7..89d20b9c 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendChatAction.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendChatAction.java @@ -49,7 +49,7 @@ public class SendChatAction extends BotApiMethod { this.action = checkNotNull(action); } - public SendChatAction(Integer chatId, String action) { + public SendChatAction(Long chatId, String action) { this.chatId = checkNotNull(chatId).toString(); this.action = checkNotNull(action); } diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendMessage.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendMessage.java index 284862b8..d750304c 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendMessage.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendMessage.java @@ -56,7 +56,7 @@ public class SendMessage extends BotApiMethod { this.text = checkNotNull(text); } - public SendMessage(Integer chatId, String text) { + public SendMessage(Long chatId, String text) { this.chatId = checkNotNull(chatId).toString(); this.text = checkNotNull(text); } diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendVideoNote.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendVideoNote.java index 468029e8..38ec3a5b 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendVideoNote.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/send/SendVideoNote.java @@ -65,7 +65,7 @@ public class SendVideoNote extends PartialBotApiMethod { * @param chatId Chat Id to send the video note * @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.videoNote = checkNotNull(videoNote); this.isNewVideoNote = false; diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java index 988ae9a3..dc0303b5 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java @@ -48,7 +48,7 @@ public class DeleteMessage extends BotApiMethod { this.messageId = checkNotNull(messageId); } - public DeleteMessage(Integer chatId, Integer messageId) { + public DeleteMessage(Long chatId, Integer messageId) { this.chatId = checkNotNull(chatId).toString(); this.messageId = checkNotNull(messageId); }