java.lang.Object
org.telegram.telegrambots.extensions.bots.commandbot.commands.BotCommand
org.telegram.telegrambots.extensions.bots.commandbot.commands.helpCommand.ManCommand
All Implemented Interfaces:
IManCommand, IBotCommand
Direct Known Subclasses:
HelpCommand

public abstract class ManCommand extends BotCommand implements IManCommand
  • Constructor Details

    • ManCommand

      public ManCommand(String commandIdentifier, String description, String extendedDescription)
      Create a new ManCommand providing a commandIdentifier, a short description and the extended description
      Parameters:
      commandIdentifier - the unique identifier of this command (e.g. the command string to enter into chat)
      description - the description of this command
      extendedDescription - The extended Description for the Command, should provide detailed information about arguments and possible options
  • Method Details

    • getExtendedDescription

      public String getExtendedDescription()
      Description copied from interface: IManCommand
      Returns the extended Description of this command
      Specified by:
      getExtendedDescription in interface IManCommand
      Returns:
      the extendedDescription
    • toMan

      public String toMan()
      Description copied from interface: IManCommand
      Returns a String Representations of the Command and it's extended Description.
      Specified by:
      toMan in interface IManCommand
      Returns:
      a String representing the Command and it's extended Description