From 0b73abad5026d50cda7ce8927ac054d951af5a8c Mon Sep 17 00:00:00 2001 From: Rubenlagus Date: Tue, 12 Apr 2016 04:51:32 +0200 Subject: [PATCH] Bots API 2.0 --- .../api/objects/replykeyboard/ReplyKeyboardMarkup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/telegram/telegrambots/api/objects/replykeyboard/ReplyKeyboardMarkup.java b/src/main/java/org/telegram/telegrambots/api/objects/replykeyboard/ReplyKeyboardMarkup.java index 04ab7363..bc7ea40c 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/replykeyboard/ReplyKeyboardMarkup.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/replykeyboard/ReplyKeyboardMarkup.java @@ -86,7 +86,7 @@ public class ReplyKeyboardMarkup implements ReplyKeyboard { for (KeyboardRow innerRow : this.keyboard) { JSONArray innerJSONKeyboard = new JSONArray(); for (KeyboardButton button : innerRow) { - innerJSONKeyboard.put(button); + innerJSONKeyboard.put(button.toJson()); } jsonkeyboard.put(innerJSONKeyboard); }