InlineKeyboardButton constructor

const InlineKeyboardButton({
  1. required String text,
  2. String? url,
  3. LoginURL? loginUrl,
  4. String? callbackData,
  5. String? switchInlineQuery,
  6. String? switchInlineQueryCurrentChat,
  7. CallbackGame? callbackGame,
  8. bool? pay,
  9. WebAppInfo? webApp,
  10. SwitchInlineQueryChosenChat? switchInlineQueryChosenChat,
  11. CopyTextButton? copyText,
})

This object represents one button of an inline keyboard.

The inline keyboard consists of a row of buttons, each represented by an InlineKeyboardButton object. You can use the various fields to specify the behavior of the button.

Implementation

const InlineKeyboardButton({
  required this.text,
  this.url,
  this.loginUrl,
  this.callbackData,
  this.switchInlineQuery,
  this.switchInlineQueryCurrentChat,
  this.callbackGame,
  this.pay,
  this.webApp,
  this.switchInlineQueryChosenChat,
  this.copyText,
});