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

    Modifier and Type
    Method
    Description
    void
    handle(T event)
    Handles a Telegram event of type T.
  • Method Details

    • handle

      void handle(T event)
      Handles a Telegram event of type T.
      Parameters:
      event - the event to handle