Interface IBotCommand
-
- All Known Implementing Classes:
BotCommand,DefaultBotCommand,HelpCommand,ManCommand
public interface IBotCommandThis Interface represents the a Command that can be executed- Author:
- Timo Schulz (Mit0x2)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCommandIdentifier()Get the identifier of this commandStringgetDescription()Get 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 Detail
-
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
-
-