| Package | Description |
|---|---|
| org.telegram.telegrambots.bots | |
| org.telegram.telegrambots.bots.commands |
| Modifier and Type | Class and Description |
|---|---|
class |
TelegramLongPollingBot |
class |
TelegramLongPollingCommandBot
This class adds command functionality to the TelegramLongPollingBot
|
class |
TelegramWebhookBot |
| Modifier and Type | Method and Description |
|---|---|
void |
TelegramLongPollingCommandBot.registerDefaultAction(BiConsumer<AbsSender,Message> defaultConsumer) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
BotCommand.execute(AbsSender absSender,
User user,
Chat chat,
String[] arguments)
Execute the command
|
boolean |
CommandRegistry.executeCommand(AbsSender absSender,
Message message)
Executes a command action if the command is registered.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ICommandRegistry.registerDefaultAction(BiConsumer<AbsSender,Message> defaultConsumer)
Register a default action when there is no command register that match the message sent
|
void |
CommandRegistry.registerDefaultAction(BiConsumer<AbsSender,Message> defaultConsumer) |
Copyright © 2016. All rights reserved.