Interface ICancelHandler

All Superinterfaces:
ITelegramHandler

public interface ICancelHandler extends ITelegramHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCancel(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 action

    Methods 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 bot
      update - the update
      message - the message
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - the exception