Class AbstractInlineHandler

  • All Implemented Interfaces:
    com.github.unafraid.telegrambot.handlers.ICallbackQueryHandler, com.github.unafraid.telegrambot.handlers.ICancelHandler, com.github.unafraid.telegrambot.handlers.ICommandHandler, com.github.unafraid.telegrambot.handlers.IMessageHandler, com.github.unafraid.telegrambot.handlers.ITelegramHandler

    public abstract class AbstractInlineHandler
    extends java.lang.Object
    implements com.github.unafraid.telegrambot.handlers.ICommandHandler, com.github.unafraid.telegrambot.handlers.IMessageHandler, com.github.unafraid.telegrambot.handlers.ICallbackQueryHandler, com.github.unafraid.telegrambot.handlers.ICancelHandler
    • Constructor Detail

      • AbstractInlineHandler

        public AbstractInlineHandler()
    • Method Detail

      • onCallbackQuery

        public boolean onCallbackQuery​(com.github.unafraid.telegrambot.bots.AbstractTelegramBot bot,
                                       org.telegram.telegrambots.meta.api.objects.Update update,
                                       org.telegram.telegrambots.meta.api.objects.CallbackQuery query)
                                throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
        Specified by:
        onCallbackQuery in interface com.github.unafraid.telegrambot.handlers.ICallbackQueryHandler
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiException
      • onCancel

        public void onCancel​(com.github.unafraid.telegrambot.bots.AbstractTelegramBot bot,
                             org.telegram.telegrambots.meta.api.objects.Update update,
                             org.telegram.telegrambots.meta.api.objects.Message message)
        Specified by:
        onCancel in interface com.github.unafraid.telegrambot.handlers.ICancelHandler
      • onCommandMessage

        public void onCommandMessage​(com.github.unafraid.telegrambot.bots.AbstractTelegramBot bot,
                                     org.telegram.telegrambots.meta.api.objects.Update update,
                                     org.telegram.telegrambots.meta.api.objects.Message message,
                                     java.util.List<java.lang.String> args)
                              throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
        Specified by:
        onCommandMessage in interface com.github.unafraid.telegrambot.handlers.ICommandHandler
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiException
      • onMessage

        public boolean onMessage​(com.github.unafraid.telegrambot.bots.AbstractTelegramBot bot,
                                 org.telegram.telegrambots.meta.api.objects.Update update,
                                 org.telegram.telegrambots.meta.api.objects.Message message)
                          throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
        Specified by:
        onMessage in interface com.github.unafraid.telegrambot.handlers.IMessageHandler
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiException
      • handleClose

        public boolean handleClose​(InlineCallbackEvent event)
                            throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiException
      • handleBack

        public boolean handleBack​(InlineCallbackEvent event)
                           throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiException
      • getDefaultMenu

        public InlineMenu getDefaultMenu()
      • setDefaultMenu

        public void setDefaultMenu​(InlineMenu defaultMenu)