Fix constructors
This commit is contained in:
parent
5937a2e3a6
commit
ca95a00b62
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user