Class InlineKeyboardButton

    • Constructor Detail

      • InlineKeyboardButton

        public InlineKeyboardButton()
      • InlineKeyboardButton

        public InlineKeyboardButton​(String text,
                                    String url,
                                    LoginUrl loginUrl,
                                    String callbackData,
                                    CallbackGame callbackGame)
        Builds InlineKeyboardButton instance.
        Parameters:
        text - Label text on the button
        url - Optional. HTTP or tg:// url to be opened when button is pressed
        loginUrl - Optional. An HTTP URL used to automatically authorize the user.
        callbackData - Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
        callbackGame - Optional. Description of the game that will be launched when the user presses the button.