package org.telegram.telegrambots.api.commands;

import java.util.Map;

/**
 *
 */
public interface ICommandRegistery {

    /**
     * register a command
     *
     * @param command the command to register
     * @return        whether the command could be registered, was not already registered
     */
    boolean register(Command command);

    /**
     * register multiple commands
     *
     * @param commands commands to register
     * @return         map with results of the command register per command
     */
    Map<Command, Boolean> registerAll(Command... commands);

    /**
     * deregister a command
     *
     * @param command the command to deregister
     * @return        whether the command could be deregistered, was registered
     */
    boolean deregister(Command command);

    /**
     * deregister multiple commands
     *
     * @param commands commands to deregister
     * @return         map with results of the command deregistered per command
     */
    Map<Command, Boolean> deregisterAll(Command... commands);

}
@@ -42,16 +42,45 @@
 mands;%0A%0A
+import java.util.Collection;%0A
 import j
@@ -1075,9 +1075,184 @@
 ands);%0A%0A
+    /**%0A     * get a collection of all registered commands%0A     *%0A     * @return a collection of registered commands%0A     */%0A    Collection%3CCommand%3E getRegisteredCommands();%0A%0A
 %7D

Add method to retrieve all registered commands