| Package | Description |
|---|---|
| org.telegram.telegrambots.bots.commandbot | |
| org.telegram.telegrambots.bots.commandbot.commands | |
| org.telegram.telegrambots.bots.commandbot.commands.helpCommand |
| Modifier and Type | Method and Description |
|---|---|
IBotCommand |
TelegramLongPollingCommandBot.getRegisteredCommand(String commandIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
Map<IBotCommand,Boolean> |
TelegramLongPollingCommandBot.deregisterAll(IBotCommand... botCommands) |
Collection<IBotCommand> |
TelegramLongPollingCommandBot.getRegisteredCommands() |
Map<IBotCommand,Boolean> |
TelegramLongPollingCommandBot.registerAll(IBotCommand... botCommands) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TelegramLongPollingCommandBot.deregister(IBotCommand botCommand) |
Map<IBotCommand,Boolean> |
TelegramLongPollingCommandBot.deregisterAll(IBotCommand... botCommands) |
boolean |
TelegramLongPollingCommandBot.register(IBotCommand botCommand) |
Map<IBotCommand,Boolean> |
TelegramLongPollingCommandBot.registerAll(IBotCommand... botCommands) |
| Modifier and Type | Class and Description |
|---|---|
class |
BotCommand
Representation of a command, which can be executed
|
class |
DefaultBotCommand
Bot command with message ID in execute method
|
| Modifier and Type | Method and Description |
|---|---|
IBotCommand |
ICommandRegistry.getRegisteredCommand(String commandIdentifier)
get registered command
|
IBotCommand |
CommandRegistry.getRegisteredCommand(String commandIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
Map<IBotCommand,Boolean> |
ICommandRegistry.deregisterAll(IBotCommand... botCommands)
deregister multiple commands
|
Map<IBotCommand,Boolean> |
CommandRegistry.deregisterAll(IBotCommand... botCommands) |
Collection<IBotCommand> |
ICommandRegistry.getRegisteredCommands()
get a collection of all registered commands
|
Collection<IBotCommand> |
CommandRegistry.getRegisteredCommands() |
Map<IBotCommand,Boolean> |
ICommandRegistry.registerAll(IBotCommand... botCommands)
register multiple commands
|
Map<IBotCommand,Boolean> |
CommandRegistry.registerAll(IBotCommand... botCommands) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ICommandRegistry.deregister(IBotCommand botCommand)
deregister a command
|
boolean |
CommandRegistry.deregister(IBotCommand botCommand) |
Map<IBotCommand,Boolean> |
ICommandRegistry.deregisterAll(IBotCommand... botCommands)
deregister multiple commands
|
Map<IBotCommand,Boolean> |
CommandRegistry.deregisterAll(IBotCommand... botCommands) |
boolean |
ICommandRegistry.register(IBotCommand botCommand)
register a command
|
boolean |
CommandRegistry.register(IBotCommand botCommand) |
Map<IBotCommand,Boolean> |
ICommandRegistry.registerAll(IBotCommand... botCommands)
register multiple commands
|
Map<IBotCommand,Boolean> |
CommandRegistry.registerAll(IBotCommand... botCommands) |
| Modifier and Type | Class and Description |
|---|---|
class |
HelpCommand
A special bot command used for printing help messages similiar to the Linux man command.
|
class |
ManCommand |
| Modifier and Type | Method and Description |
|---|---|
static String |
HelpCommand.getHelpText(IBotCommand... botCommands)
Returns the command and description of all supplied commands as a formatted String
|
static String |
HelpCommand.getManText(IBotCommand command)
Reads the extended Description from a BotCommand.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
HelpCommand.getHelpText(Collection<IBotCommand> botCommands)
Returns the command and description of all supplied commands as a formatted String
|
Copyright © 2018. All rights reserved.