Class ManCommand
- java.lang.Object
-
- org.telegram.telegrambots.extensions.bots.commandbot.commands.BotCommand
-
- org.telegram.telegrambots.extensions.bots.commandbot.commands.helpCommand.ManCommand
-
- All Implemented Interfaces:
IManCommand,IBotCommand
- Direct Known Subclasses:
HelpCommand
public abstract class ManCommand extends BotCommand implements IManCommand
-
-
Field Summary
-
Fields inherited from class org.telegram.telegrambots.extensions.bots.commandbot.commands.BotCommand
COMMAND_INIT_CHARACTER, COMMAND_PARAMETER_SEPARATOR_REGEXP
-
-
Constructor Summary
Constructors Constructor Description ManCommand(String commandIdentifier, String description, String extendedDescription)Create a new ManCommand providing a commandIdentifier, a short description and the extended description
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExtendedDescription()Returns the extended Description of this commandStringtoMan()Returns a String Representations of the Command and it's extended Description.-
Methods inherited from class org.telegram.telegrambots.extensions.bots.commandbot.commands.BotCommand
execute, getCommandIdentifier, getDescription, processMessage, toString
-
-
-
-
Constructor Detail
-
ManCommand
public ManCommand(String commandIdentifier, String description, String extendedDescription)
Create a new ManCommand providing a commandIdentifier, a short description and the extended description- Parameters:
commandIdentifier- the unique identifier of this command (e.g. the command string to enter into chat)description- the description of this commandextendedDescription- The extended Description for the Command, should provide detailed information about arguments and possible options
-
-
Method Detail
-
getExtendedDescription
public String getExtendedDescription()
Description copied from interface:IManCommandReturns the extended Description of this command- Specified by:
getExtendedDescriptionin interfaceIManCommand- Returns:
- the extendedDescription
-
toMan
public String toMan()
Description copied from interface:IManCommandReturns a String Representations of the Command and it's extended Description.- Specified by:
toManin interfaceIManCommand- Returns:
- a String representing the Command and it's extended Description
-
-