Interface ICancelHandler
-
- All Superinterfaces:
ITelegramHandler
public interface ICancelHandler extends ITelegramHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCancel(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.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 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 botupdate- the updatemessage- the message- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException- the exception
-
-