ReplyMarkup.inlineKeyboard constructor

const ReplyMarkup.inlineKeyboard({
  1. @JsonKey.new(name: 'inline_keyboard') @Default.new([<InlineKeyboardButton>[]]) List<List<InlineKeyboardButton>> inlineKeyboard,
  2. @JsonKey.new(name: 'force_reply') bool? forceReply,
})

This object represents an inline keyboard that appears right next to the message it belongs to.

Implementation

const factory ReplyMarkup.inlineKeyboard({
  /// Array of button rows, each represented by an Array of
  /// InlineKeyboardButton objects
  @JsonKey(name: 'inline_keyboard')
  @Default([<InlineKeyboardButton>[]])
  List<List<InlineKeyboardButton>> inlineKeyboard,

  /// Optional. Pass True if the reply interface must be shown to the user, as
  /// if they had manually selected the bot's message and tapped 'Reply'. The
  /// value of the field can't be changed when the inline keyboard is edited.
  @JsonKey(name: 'force_reply') bool? forceReply,
}) = InlineKeyboardMarkup;