Skip to content

Latest commit

 

History

History
79 lines (48 loc) · 1.88 KB

ogtemplatemessagebuilder.md

File metadata and controls

79 lines (48 loc) · 1.88 KB

@aiteq/messenger-bot > OgTemplateMessageBuilder

Class: OgTemplateMessageBuilder

Helps to create a Open Graph Template message.

Hierarchy

TemplateMessageBuilder

↳ OgTemplateMessageBuilder

Index

Constructors

Methods


Constructors

new OgTemplateMessageBuilder()

Returns: OgTemplateMessageBuilder


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


setElement(elementBuilder)

Sets an Open Graph Element.

Parameters:

Param Type Description
elementBuilder OgElementBuilder

Returns: this - for chaining