Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.76 KB

botconfig.md

File metadata and controls

79 lines (49 loc) · 1.76 KB

@aiteq/messenger-bot > BotConfig

Interface: BotConfig

Represents configuration object for BotServer.

Properties

accessToken

A Page Access Token for calling Messenger Platform API.

type: string


appSecret

An App Secret of your FB application. It's used for verifying webhook request signatures.

type: string


«optional» askTimeout

Number of milliseconds to expire unanswered asking during conversation.

type: number


«optional» extensionsPath

A custom endpoint name for Chat Extensions. Default value: "/ext".

type: string


«optional» name

A name of the bot. Optional. It's used only for logging in this time.

type: string


«optional» pingPath

A custom endpoint name for the ping service. Default value: "/ping".

type: string


«optional» port

A port number for bot server. Optional. If it is not specified the bot will try to use the process.env.PORT property or set the port to 8080.

type: (number | string)


verifyToken

A Verify Token for webhook setup.

type: string


«optional» webhookPath

A custom endpoint name for webhook. Default value: "/webhook".

type: string