Class InlineQueryResultsButton

java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultsButton
All Implemented Interfaces:
Serializable

public class InlineQueryResultsButton extends Object implements Serializable
This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.
Since:
3 March 2025
See Also:
  • Constructor Details

    • InlineQueryResultsButton

      public InlineQueryResultsButton(String text)
      Required
      Parameters:
      text - Label text on the button
  • Method Details

    • setWebAppInfo

      public InlineQueryResultsButton setWebAppInfo(WebAppInfo webAppInfo)
      Optional
      Parameters:
      webAppInfo - Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.
      Returns:
      InlineQueryResultsButton
    • setStartParameter

      public InlineQueryResultsButton setStartParameter(String startParameter)
      Optional
      Parameters:
      startParameter - Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.
      Returns:
      InlineQueryResultsButton