Create a Template object for the API
Name of the template
The code of the language or locale to use. Accepts both language and language_locale formats (e.g., en and en_US).
Rest ...components: (HeaderComponent | BodyComponent | ButtonComponent | CarouselComponent | LTOComponent)[]Components objects containing the parameters of the message. For text-based templates, the only supported component is BodyComponent.
If the template isn't text-based (only one BodyComponent is given) and one of the parameters is a string and it's over 1024 characters.
Optional Readonly componentsThe components of the template
Readonly languageThe language of the template
Readonly nameThe name of the template
Static OTPOTP Template generator
Name of the template
The code of the language or locale to use. Accepts both language and language_locale formats (e.g., en and en_US).
The one time password to be sent
A Template object for the API
Generated using TypeDoc
Template API object