Add method to retrieve all registered commands

This commit is contained in:
tschulz 2016-05-20 11:10:35 +02:00
parent 5d0f508b5a
commit 91191ee63b

View File

@ -1,5 +1,6 @@
package org.telegram.telegrambots.api.commands;
import java.util.Collection;
import java.util.Map;
/**
@ -39,4 +40,11 @@ public interface ICommandRegistery {
*/
Map<Command, Boolean> deregisterAll(Command... commands);
/**
* get a collection of all registered commands
*
* @return a collection of registered commands
*/
Collection<Command> getRegisteredCommands();
}