bot-messenger-node
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "bot-messenger-node", | ||
"description": "A Node.js library streamlining the integration and smooth utilization of the Messenger API for the development of interactive chatbots.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "src/Messenger.js", | ||
"scripts": { | ||
@@ -20,15 +21,15 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"license": "MIT", | ||
"dependencies": {"axios":"^1.6.2"}, | ||
"dependencies": { "axios": "^1.6.2" }, | ||
"directories": { | ||
"lib": "src" | ||
}, | ||
"lib": "src" | ||
}, | ||
"devDependencies": { | ||
"@types/events": "^3.0.0", | ||
"@types/events": "^3.0.0", | ||
"@types/node": "^18.11.18", | ||
"@types/node": "^18.11.18", | ||
"express": "^4.18.2" | ||
"express": "^4.18.2" | ||
}, | ||
}, | ||
"engines": { | ||
@@ -35,0 +36,0 @@ "node": ">=12.0.0" |
@@ -118,4 +118,2 @@ # Facebook Messenger Bot | ||
const messenger = Messenger.create('<PAGE_TOKEN>'); | ||
// Check the namespace carefully Fakell\BotMessenger\Model\Attachment\Template\Button\Button | ||
const button = new Button("What can I do to help?", | ||
@@ -207,3 +205,3 @@ [ | ||
// or remoteFile | ||
const image = new Image('https://image.com/fakell.png'); | ||
const image = new Image('https://image.com/laza.png'); | ||
@@ -242,3 +240,3 @@ // I don't write in the following code the file remote from others because Image, File, Audio, Video supports a remote file | ||
const personas = new Personas('Fakell', 'https://image.com/profile.png'); | ||
const personas = new Personas('Laza', 'https://image.com/profile.png'); | ||
messenger.addPersonas(personas).then(personasArray => { | ||
@@ -245,0 +243,0 @@ // if successful, personasArray will contain the personas's id |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
1867355
377