Interface IUnknownUpdateHandler
- All Superinterfaces:
ITelegramHandler
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonUnhandledUpdate(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update) Fired unhandled update is receivedMethods inherited from interface com.github.unafraid.telegrambot.handlers.ITelegramHandler
getRequiredAccessLevel
-
Method Details
-
onUnhandledUpdate
boolean onUnhandledUpdate(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException Fired unhandled update is received- Parameters:
bot- the botupdate- the update- Returns:
trueif handler 'consumed' that event, aborting notification to other handlers,falseotherwise, continuing to look for handler that would returntrue- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException- the exception
-