Interface TelegramEventHandler<T extends org.telegram.telegrambots.meta.api.interfaces.BotApiObject>
- Type Parameters:
T
- the type of the event, which extends BotApiObject
- All Known Implementing Classes:
CallbackQueryHandler
,MessageHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface TelegramEventHandler<T extends org.telegram.telegrambots.meta.api.interfaces.BotApiObject>
A functional interface for handling Telegram events.
-
Method Summary
-
Method Details
-
handle
Handles a Telegram event of type T.- Parameters:
event
- the event to handle
-