• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/deno
  • index
  • BotKeyboard
  • findButton

Function findButton

  • findButton(
        buttons: TypeKeyboardButton[][],
        predicate: string | (btn: TypeKeyboardButton) => boolean,
    ): tl.TypeKeyboardButton | null
  • Find a button in the keyboard by its text or by predicate

    Parameters

    • buttons: TypeKeyboardButton[][]

      Two-dimensional array of buttons

    • predicate: string | (btn: TypeKeyboardButton) => boolean

      Button text or predicate function

    Returns tl.TypeKeyboardButton | null

    • Defined in packages/core/src/highlevel/types/bots/keyboards/factories.ts:356

Settings

Member Visibility
Documentation - v0.23.3
  • Loading...

Generated using TypeDoc