Class InlineUserData
- java.lang.Object
-
- com.github.unafraid.telegrambot.handlers.inline.InlineUserData
-
public class InlineUserData extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InlineUserData(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideditCurrentMenu(org.telegram.telegrambots.meta.bots.AbsSender bot, org.telegram.telegrambots.meta.api.objects.Message message, IInlineMenuLayout layout, InlineMenu menu)Edits the message sets menu.getName as text of the message and renders the menu specifiedvoideditCurrentMenu(org.telegram.telegrambots.meta.bots.AbsSender bot, org.telegram.telegrambots.meta.api.objects.Message message, java.lang.String text, IInlineMenuLayout layout, InlineMenu menu)Edits current message with the new text and menuInlineButtongetActiveButton()InlineMenugetActiveMenu()intgetId()com.github.unafraid.telegrambot.util.MapUtilgetParams()intgetState()voidsendMenu(org.telegram.telegrambots.meta.bots.AbsSender bot, org.telegram.telegrambots.meta.api.objects.Message message, java.lang.String text, IInlineMenuLayout layout, InlineMenu menu)Sends the InlineMenu to message's chatvoidsetActiveButton(InlineButton activeButton)voidsetActiveMenu(InlineMenu activeMenu)voidsetState(int state)
-
-
-
Method Detail
-
getId
public int getId()
- Returns:
- the id
-
getState
public int getState()
- Returns:
- the state
-
setState
public void setState(int state)
- Parameters:
state- the state to set
-
getActiveMenu
public InlineMenu getActiveMenu()
- Returns:
- the activeMenu
-
setActiveMenu
public void setActiveMenu(InlineMenu activeMenu)
- Parameters:
activeMenu- the activeMenu to set
-
getActiveButton
public InlineButton getActiveButton()
- Returns:
- the activeButton
-
setActiveButton
public void setActiveButton(InlineButton activeButton)
- Parameters:
activeButton- the activeButton to set
-
getParams
public com.github.unafraid.telegrambot.util.MapUtil getParams()
- Returns:
- the params
-
sendMenu
public void sendMenu(org.telegram.telegrambots.meta.bots.AbsSender bot, org.telegram.telegrambots.meta.api.objects.Message message, java.lang.String text, IInlineMenuLayout layout, InlineMenu menu) throws org.telegram.telegrambots.meta.exceptions.TelegramApiExceptionSends the InlineMenu to message's chat- Parameters:
bot-message-text-layout-menu-- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
editCurrentMenu
public void editCurrentMenu(org.telegram.telegrambots.meta.bots.AbsSender bot, org.telegram.telegrambots.meta.api.objects.Message message, java.lang.String text, IInlineMenuLayout layout, InlineMenu menu) throws org.telegram.telegrambots.meta.exceptions.TelegramApiExceptionEdits current message with the new text and menu- Parameters:
bot-message-text-layout-menu-- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
editCurrentMenu
public void editCurrentMenu(org.telegram.telegrambots.meta.bots.AbsSender bot, org.telegram.telegrambots.meta.api.objects.Message message, IInlineMenuLayout layout, InlineMenu menu) throws org.telegram.telegrambots.meta.exceptions.TelegramApiExceptionEdits the message sets menu.getName as text of the message and renders the menu specified- Parameters:
bot-message-layout-menu-- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
-