@japofc/baileys - v2.4.7
    Preparing search index...

    Class ButtonV3

    Legacy templateMessage / hydratedFourRowTemplate builder — WA's Generation-1 button protocol (predates the nativeFlow format Button/ButtonV2 use). Capped at 3 buttons (quickReply/url/call only), no interactive list/flow support.

    Hierarchy (View Summary)

    Index
    MAX_BUTTONS: number
    • Max 3 buttons — throws past the limit.

      Parameters

      • hydratedButton: Record<string, any>

      Returns this

    • Parameters

      • display_text: string
      • phone_number: string

      Returns this

    • Parameters

      • display_text: string
      • id: string

      Returns this

    • Parameters

      • display_text: string
      • url: string
      • Optionaloptions: Record<string, any>

      Returns this

    • Parameters

      • jid: string
      • Optionaloptions: Record<string, any> & { validate?: boolean }

      Returns Promise<Record<string, any>>

    • Load an existing templateMessage (e.g. from a fetched/quoted message) for editing.

      Parameters

      • msg: Record<string, any>

      Returns this

    • Build and send. Validates by default; pass { validate:false } for low-level experiments.

      Parameters

      • jid: string
      • Optionaloptions: Record<string, any> & { additionalNodes?: any[]; validate?: boolean }

      Returns Promise<any>

    • Parameters

      • path: string | Buffer<ArrayBufferLike>
      • Optionaloptions: Record<string, any>

      Returns this

    • Parameters

      • path: string | Buffer<ArrayBufferLike>
      • Optionaloptions: Record<string, any>

      Returns this

    • Parameters

      • path: string | Buffer<ArrayBufferLike>
      • Optionaloptions: Record<string, any>

      Returns this