Add method to retrieve all registered commands
This commit is contained in:
parent
5d0f508b5a
commit
91191ee63b
@ -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();
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user