Class AbstractInlineHandler
- java.lang.Object
-
- com.github.unafraid.telegrambot.handlers.inline.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 Summary
Constructors Constructor Description AbstractInlineHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description InlineButtondefaultBack(InlineContext context)InlineButtondefaultBack(InlineContext context, InlineMenu targetMenu)InlineButtondefaultClose(InlineContext context)InlineMenugetDefaultMenu()booleanhandleBack(InlineCallbackEvent event)booleanhandleClose(InlineCallbackEvent event)booleanonCallbackQuery(com.github.unafraid.telegrambot.bots.AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.CallbackQuery query)voidonCancel(com.github.unafraid.telegrambot.bots.AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.Message message)voidonCommandMessage(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)booleanonMessage(com.github.unafraid.telegrambot.bots.AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.Message message)abstract voidregisterMenu(InlineContext ctx, InlineMenuBuilder builder)voidsetDefaultMenu(InlineMenu defaultMenu)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
registerMenu
public abstract void registerMenu(InlineContext ctx, InlineMenuBuilder builder)
-
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:
onCallbackQueryin interfacecom.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:
onCancelin interfacecom.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:
onCommandMessagein interfacecom.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:
onMessagein interfacecom.github.unafraid.telegrambot.handlers.IMessageHandler- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
defaultClose
public InlineButton defaultClose(InlineContext context)
-
defaultBack
public InlineButton defaultBack(InlineContext context)
-
defaultBack
public InlineButton defaultBack(InlineContext context, InlineMenu targetMenu)
-
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)
-
-