Interface ICancelHandler
- All Superinterfaces:
ITelegramHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidonCancel(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.message.Message message) Fired whenever user types in /cancel command to cancel the current actionMethods inherited from interface com.github.unafraid.telegrambot.handlers.ITelegramHandler
getRequiredAccessLevel
-
Method Details
-
onCancel
void onCancel(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.message.Message message) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException Fired whenever user types in /cancel command to cancel the current action- Parameters:
bot- the botupdate- the updatemessage- the message- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException- the exception
-