InlineKeyboardButton constructor
const
InlineKeyboardButton({
- required String text,
- String? url,
- LoginURL? loginUrl,
- String? callbackData,
- String? switchInlineQuery,
- String? switchInlineQueryCurrentChat,
- CallbackGame? callbackGame,
- bool? pay,
- WebAppInfo? webApp,
- SwitchInlineQueryChosenChat? switchInlineQueryChosenChat,
- 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,
});