MessageTemplate
Defined in: src/types/templates.ts:189
A message template as returned by the Graph API. Only commonly used fields are typed; an index signature allows any additional Graph fields.
Indexable
Section titled “Indexable”[
key:string]:unknown
Additional Graph fields not explicitly typed above.
Properties
Section titled “Properties”category
Section titled “category”category:
string
Defined in: src/types/templates.ts:199
The template category.
components
Section titled “components”components:
MessageTemplateComponent[]
Defined in: src/types/templates.ts:203
The template components.
id:
string
Defined in: src/types/templates.ts:191
The template id.
language
Section titled “language”language:
string
Defined in: src/types/templates.ts:195
The template language/locale, e.g. en_US.
name:
string
Defined in: src/types/templates.ts:193
The template name (lowercase, alphanumeric + underscores).
parameter_format?
Section titled “parameter_format?”
optionalparameter_format?:string
Defined in: src/types/templates.ts:201
How parameters are addressed, when present.
status
Section titled “status”status:
string
Defined in: src/types/templates.ts:197
The current review/lifecycle status.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.