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

    Class Carousel

    Chainable carousel builder (max 10 cards — enforced, WA truncates beyond that).

    Hierarchy (View Summary)

    Index
    MAX_CARDS: number
    • Add a text/button-only card without manually constructing the proto-shaped card.

      Parameters

      • Optionalcard: CarouselTextCardOptions

      Returns this

    • Build the WAMessage without sending. Pass { validate: true } to run assertValid() first.

      Parameters

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

      Returns any

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

      Parameters

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

      Returns Promise<any>

    • Configure carousel-level proto metadata. Defaults: { carouselCardType: UNKNOWN, messageVersion: 1 }.

      Parameters

      • Optionaloptions: CarouselOptions

      Returns this