Skip to content

TemplateComponent

Defined in: src/types/messages.ts:158

A header/body/button component of a template message.

optional index?: string

Defined in: src/types/messages.ts:163

Positional index of a button component, as a string per the API.


optional parameters?: TemplateParameter[]

Defined in: src/types/messages.ts:164


optional sub_type?: string

Defined in: src/types/messages.ts:161

Required for button components, e.g. quick_reply or url.


type: "body" | "header" | "button"

Defined in: src/types/messages.ts:159

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.