public abstract class BaseMessageHandler extends BaseMessage implements IMessageHandler
| Constructor and Description |
|---|
BaseMessageHandler(String botName,
String command,
IBotAPI bot) |
BaseMessageHandler(String botName,
String command,
IBotAPI bot,
boolean noargs) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand() |
String |
getDescription()
If this returns non-null, the command will be printed when the server comes up so that you can send it to BotFather.
|
protected String |
getKeywords(String text) |
boolean |
matches(IUpdate update) |
defaultKeyboard, getBot, getKeywords, locationKeyboard, lookupBean, sendMessage, sendMessage, sendMessageWithKeyboard, setBot, typingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlepublic boolean matches(IUpdate update)
matches in interface IMessageHandlerpublic String getCommand()
getCommand in interface IMessageHandlerpublic String getDescription()
IMessageHandlergetDescription in interface IMessageHandlerCopyright © 2022. All rights reserved.