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 Type
    Method
    Description
    Get the identifier of this command
    Get the description of this command
    void
    processMessage(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

      void processMessage(TelegramClient telegramClient, Message message, String[] arguments)
      Process the message and execute the command
      Parameters:
      telegramClient - client to send requests
      message - the message to process