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(TelegramClient telegramClient, 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
Process the message and execute the command- Parameters:
telegramClient- client to send requestsmessage- the message to process
-