Class InlineUserData


  • public class InlineUserData
    extends java.lang.Object
    • Constructor Detail

      • InlineUserData

        public InlineUserData​(int id)
    • 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.TelegramApiException
        Sends 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.TelegramApiException
        Edits 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.TelegramApiException
        Edits 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