pay method

InlineMenu<CTX> pay(
  1. String text
)

Adds a pay button to the current row.

Parameters:

  • text: The text to display on the button

Example:

menu.pay('Pay Now');

Implementation

InlineMenu<CTX> pay(String text) {
  _ensureCurrentRow();
  final button = InlineKeyboardButton(text: text, pay: true);
  _rows.last.add(_InlineMenuItemStatic(_InlineMenuStaticButton(button)));
  return this;
}