Interface ICancelHandler

    • Method Detail

      • onCancel

        void onCancel​(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
        Fired whenever user types in /cancel command to cancel the current action
        Parameters:
        bot - the bot
        update - the update
        message - the message
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiException - the exception