From f74ee0bcbde2f6a92de85d05d51ef94b425e82ab Mon Sep 17 00:00:00 2001 From: Mark Struchkov Date: Wed, 15 May 2019 13:23:28 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3=20=D0=B2=20=D0=BE=D1=82=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B5=20=D0=BA=D0=BB=D0=B0=D0=B2=D0=B8=D0=B0?= =?UTF-8?q?=D1=82=D1=83=D1=80=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 5a400cf..baa3743 100644 --- a/src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java +++ b/src/main/java/org/sadtech/vkbot/core/sender/MailSenderVk.java @@ -55,7 +55,9 @@ public class MailSenderVk implements Sent { if (boxAnswer.getKeyboard() != null) { messages.keyboard(KeyBoardConvert.convertKeyboard(boxAnswer.getKeyboard())); } else { -// messages.keyboard("{\"buttons\":[],\"one_time\":true}"); + Keyboard keyboard = new Keyboard(); + keyboard.setOneTime(true); + messages.keyboard(keyboard); } if (boxAnswer.getLat() != null && boxAnswer.getaLong() != null) { messages.lat(boxAnswer.getLat()).lng(boxAnswer.getaLong());