Search
Preparing search index...
The search index is not available
Sociably
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Sociably
messenger
MessengerBot
Class MessengerBot
MessengerBot render messages and make API call to Messenger platform.
Hierarchy
MessengerBot
Implements
SociablyBot
<
MessengerChannel
,
MessengerJob
,
MessengerResult
>
Index
Constructors
constructor
Properties
engine
page
Id
platform
worker
Methods
make
Api
Call
render
render
Attachment
start
stop
Constructors
constructor
new
Messenger
Bot
(
__namedParameters
:
MessengerBotOptions
)
:
MessengerBot
Parameters
__namedParameters:
MessengerBotOptions
Returns
MessengerBot
Properties
engine
engine
:
default
<
MessengerChannel
,
MessengerSegmentValue
,
MessengerComponent
<
unknown
,
IntermediateSegment
<
MessengerSegmentValue
,
any
>
>
,
MessengerJob
,
MessengerResult
>
page
Id
page
Id
:
string
platform
platform
:
"messenger"
= MESSENGER
worker
worker
:
default
Methods
make
Api
Call
make
Api
Call
<
ResBody
>
(
method
:
"GET"
|
"POST"
|
"DELETE"
, relativeUrl
:
string
, body
?:
unknown
)
:
Promise
<
ResBody
>
Type parameters
ResBody
:
FbGraphApiResult
Parameters
method:
"GET"
|
"POST"
|
"DELETE"
relativeUrl:
string
Optional
body:
unknown
Returns
Promise
<
ResBody
>
render
render
(
target
:
string
|
MessengerTarget
|
MessengerChannel
, messages
:
SociablyNode
, options
?:
MessengerSendOptions
)
:
Promise
<
null
|
MessengerDispatchResponse
>
Parameters
target:
string
|
MessengerTarget
|
MessengerChannel
messages:
SociablyNode
Optional
options:
MessengerSendOptions
Returns
Promise
<
null
|
MessengerDispatchResponse
>
render
Attachment
render
Attachment
(
node
:
SociablyNode
)
:
Promise
<
null
|
MessengerDispatchResponse
>
Parameters
node:
SociablyNode
Returns
Promise
<
null
|
MessengerDispatchResponse
>
start
start
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Modules
auth
core
create-
app
dev-
tools
dialogflow
http
line
messenger
messenger/asset
messenger/components
messenger/webview
messenger/webview/client
default
next
redis-
state
script
stream
telegram
twitter
websocket
webview
Messenger
Bot
constructor
engine
page
Id
platform
worker
make
Api
Call
render
render
Attachment
start
stop
Generated using
TypeDoc
MessengerBot render messages and make API call to Messenger platform.