Skip to content

Latest commit

 

History

History
74 lines (43 loc) · 1.76 KB

templatemessagebuilder.md

File metadata and controls

74 lines (43 loc) · 1.76 KB

@aiteq/messenger-bot > TemplateMessageBuilder

Class: TemplateMessageBuilder

An abstract parent class for template message builders.

Type parameters

T

Hierarchy

MessageBuilder

↳ TemplateMessageBuilder

    ↳ GenericTemplateMessageBuilder

    ↳ OgTemplateMessageBuilder

    ↳ ReceiptTemplateMessageBuilder

Index

Constructors

Methods


Constructors

new TemplateMessageBuilder()

Returns: TemplateMessageBuilder


Methods

addLocationQuickReply()

Inherited from MessageBuilder

Adds a Quick Reply button to quickly send user's location.

Returns: this - for chaining


addQuickReply(title, id, [data, [imageUrl]])

Inherited from MessageBuilder

Adds a Quick Reply button to the message.

Parameters:

Param Type Description
title string title of the Quick Reply
id string ID of the button (required for proper generation of webhook events)
data any optional data to be send when the user click on the Quick Reply button
imageUrl string URL of optional image

Returns: this - for chaining