public abstract class BotCommand extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_INIT_CHARACTER |
static String |
COMMAND_PARAMETER_SEPARATOR |
| Constructor and Description |
|---|
BotCommand(String commandIdentifier,
String description)
Construct a command
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute(AbsSender absSender,
User user,
Chat chat,
String[] arguments)
Execute the command
|
String |
getCommandIdentifier()
Get the identifier of this command
|
String |
getDescription()
Get the description of this command
|
String |
toString() |
public static final String COMMAND_INIT_CHARACTER
public static final String COMMAND_PARAMETER_SEPARATOR
Copyright © 2016. All rights reserved.