Interface IInlineQueryHandler

All Superinterfaces:
ITelegramHandler

public interface IInlineQueryHandler extends ITelegramHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onInlineQuery(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.inlinequery.InlineQuery query)
    Fired whenever bot receives a callback query

    Methods inherited from interface com.github.unafraid.telegrambot.handlers.ITelegramHandler

    getRequiredAccessLevel
  • Method Details

    • onInlineQuery

      boolean onInlineQuery(AbstractTelegramBot bot, org.telegram.telegrambots.meta.api.objects.Update update, org.telegram.telegrambots.meta.api.objects.inlinequery.InlineQuery query) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Fired whenever bot receives a callback query
      Parameters:
      bot - the bot
      update - the update
      query - the query
      Returns:
      true whenever this even has to be consumed, false to continue notified other handlers
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - the exception