public abstract class Menu extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_SEPARATOR |
static InlineKeyboardMarkup |
KEYBOARD_MARKUP |
| Modifier | Constructor and Description |
|---|---|
protected |
Menu(TelegramBot bot) |
| Modifier and Type | Method and Description |
|---|---|
void |
addViewer(MenuViewer viewer) |
void |
addViewers(Collection<MenuViewer> viewers) |
TelegramBot |
getBot() |
UUID |
getId() |
TextBuilder |
getMenuMessage()
Use this so the bot can update the message of the menu as well.
|
abstract List<MenuRow> |
getRows() |
List<MenuViewer> |
getViewers() |
abstract void |
handleException(TelegramException exception) |
void |
migrateTo(Menu other) |
InlineKeyboardMarkup |
toKeyboard() |
void |
update() |
void |
update(MenuViewer viewer) |
public static final InlineKeyboardMarkup KEYBOARD_MARKUP
public static final String DATA_SEPARATOR
protected Menu(TelegramBot bot)
public abstract void handleException(TelegramException exception)
public void update()
public void update(MenuViewer viewer)
public void addViewer(MenuViewer viewer)
public void addViewers(Collection<MenuViewer> viewers)
public void migrateTo(Menu other)
public TextBuilder getMenuMessage()
public InlineKeyboardMarkup toKeyboard()
@Generated(value="lombok") public UUID getId()
@Generated(value="lombok") public List<MenuViewer> getViewers()
@Generated(value="lombok") public TelegramBot getBot()
Copyright © 2017–2018. All rights reserved.