diff --git a/src/main/java/org/sadtech/vkbot/core/sender/BoardCommentSenderVk.java b/src/main/java/org/sadtech/vkbot/core/sender/BoardCommentSenderVk.java index 8879f5f..e615ea2 100644 --- a/src/main/java/org/sadtech/vkbot/core/sender/BoardCommentSenderVk.java +++ b/src/main/java/org/sadtech/vkbot/core/sender/BoardCommentSenderVk.java @@ -37,9 +37,9 @@ public class BoardCommentSenderVk implements Sent { public void send(Integer contentId, Integer personId, BoxAnswer boxAnswer) { try { StringBuilder insertAnswer = new StringBuilder(vkInsertData.insertWords(boxAnswer.getMessage(), personId)); - if (boxAnswer.getKeyboard() != null) { + if (boxAnswer.getKeyBoard() != null) { insertAnswer.append("\n\nМеню:\n"); - for (KeyBoardLine keyBoardLine : boxAnswer.getKeyboard().getKeyBoardLines()) { + for (KeyBoardLine keyBoardLine : boxAnswer.getKeyBoard().getKeyBoardLines()) { for (KeyBoardButton keyBoardButton : keyBoardLine.getKeyBoardButtons()) { switch (keyBoardButton.getType()) { case TEXT: diff --git a/src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java b/src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java index 90a895f..c99b130 100644 --- a/src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java +++ b/src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java @@ -43,7 +43,7 @@ public class MailSenderVk implements Sent { MessagesSendQuery messages = vkApiClient.messages().send(groupActor).peerId(peerId) .message(vkInsertData.insertWords(boxAnswer.getMessage(), peerId)) .randomId(ThreadLocalRandom.current().nextInt(0, Integer.MAX_VALUE)); - messages.keyboard(convertKeyBoard(boxAnswer.getKeyboard())); + messages.keyboard(convertKeyBoard(boxAnswer.getKeyBoard())); if (boxAnswer.getCoordinates() != null) { messages.lat(boxAnswer.getCoordinates().getLatitude()).lng(boxAnswer.getCoordinates().getLongitude());