From f687ca1ceb87681d117aeaf08dada0e5ff0038f2 Mon Sep 17 00:00:00 2001 From: Chase Date: Thu, 21 Dec 2017 15:23:15 +0100 Subject: [PATCH] changed getDescription() to toString() in getManText(BotCommand command) --- .../bots/commandbot/commands/helpCommand/HelpCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telegrambots-extensions/src/main/java/org/telegram/telegrambots/bots/commandbot/commands/helpCommand/HelpCommand.java b/telegrambots-extensions/src/main/java/org/telegram/telegrambots/bots/commandbot/commands/helpCommand/HelpCommand.java index 726bd090..2926b0e6 100644 --- a/telegrambots-extensions/src/main/java/org/telegram/telegrambots/bots/commandbot/commands/helpCommand/HelpCommand.java +++ b/telegrambots-extensions/src/main/java/org/telegram/telegrambots/bots/commandbot/commands/helpCommand/HelpCommand.java @@ -56,12 +56,12 @@ public class HelpCommand extends ManCommand { } /** - * Reads the extended Description from a BotCommand. If the Command is not of Type {@link IManCommand}, it returns the normal Description; + * Reads the extended Description from a BotCommand. If the Command is not of Type {@link IManCommand}, it calls toString(); * @param command a command the extended Descriptions is read from - * @return the extended Description or the normal Description if IManCommand is not implemented + * @return the extended Description or the toString() if IManCommand is not implemented */ public static String getManText(BotCommand command) { - return IManCommand.class.isInstance(command) ? getManText((IManCommand) command) : command.getDescription(); + return IManCommand.class.isInstance(command) ? getManText((IManCommand) command) : command.toString(); } /**