From 2f33c2ac2c2595f4b325b7e4b945f0a0db1a77a0 Mon Sep 17 00:00:00 2001 From: Mark Struchkov Date: Fri, 12 Jul 2019 17:16:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sadtech/vkbot/core/sender/BoardCommentSenderVk.java | 4 ++-- src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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());