Interface IBotCommand
- All Known Implementing Classes:
BotCommand,DefaultBotCommand,HelpCommand,ManCommand
public interface IBotCommand
This Interface represents the a Command that can be executed
- Author:
- Timo Schulz (Mit0x2)
-
Method Summary
Modifier and TypeMethodDescriptionGet the identifier of this commandGet the description of this commandvoidprocessMessage(org.telegram.telegrambots.meta.bots.AbsSender absSender, org.telegram.telegrambots.meta.api.objects.Message message, String[] arguments) Process the message and execute the command
-
Method Details
-
getCommandIdentifier
String getCommandIdentifier()Get the identifier of this command- Returns:
- the identifier
-
getDescription
String getDescription()Get the description of this command- Returns:
- the description as String
-
processMessage
void processMessage(org.telegram.telegrambots.meta.bots.AbsSender absSender, org.telegram.telegrambots.meta.api.objects.Message message, String[] arguments) Process the message and execute the command- Parameters:
absSender- absSender to send messages overmessage- the message to process
-