TemplateComponent
Defined in: src/types/messages.ts:158
A header/body/button component of a template message.
Properties
Section titled “Properties”index?
Section titled “index?”
optionalindex?:string
Defined in: src/types/messages.ts:163
Positional index of a button component, as a string per the API.
parameters?
Section titled “parameters?”
optionalparameters?:TemplateParameter[]
Defined in: src/types/messages.ts:164
sub_type?
Section titled “sub_type?”
optionalsub_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.