Facebook Chat Api For Messenger Bot
npm install neha_khanNote! This Is The Main Chat Api Product By [Facebook-Chat-Api]
Lead Author: [Neha Khan], Current Author Not Responsible! ), If Yes Error Try Using Another Product !
+ Support English, VietNamese !,
+ All bot if using listenMqtt first.
Facebook Already Has And For Users To Create Api For Chatbots At Dey => Here.
Note ! If You Want This Api Contact on my facebook.Here
If You Want To Use It, Download It By:
``bash`
npm i neha_khan`
orbash`
npm install neha_khan
It Will Load Into node_modules (Your Lib) - Note Replit Won't Show Where to Find
If You Want To Use The Latest Version Or Update Then Go To Terminal Or Command Prompt Enter :
`bash`
npm install neha_khan`
Orbash`
npm i neha_khan@latest
Benefits For This You Will Not Spend Time Paying Acc And Have Acc
Use it with a Demo Account => Facebook Whitehat Accounts.
`javascript
const login = require("neha_khan"); // get it from the lib
// log in
login({email: "Gmail Account", password: "Your Facebook Password"}, (err, api) => {
if(err) return console.error(err); // error case
// tạo bot tự động nhái theo bạn:
api.listenMqtt((err, message) => {
api.sendMessage(message.body, message.threadID);
});
});
`
As a result, it will copy you as shown below:
If You Want Advanced Use Then Use Bot Types Listed Above !
You Can Read Full Api At => here.
You need to go to file Mirai.js, Then Find Line
`js`
var login = require('neha_khan');
/* Maybe :
var login = require('fca-anup');
var login = require('fca-aliya-anup');
var login = require('aliya-anup');
...
*/
And Replace It With:
`js`
var login = require('neha_khan')
Then Run As Normal!
To Save You Need 1 Apstate Type (Cookie, etc,..) To Save Or Use Login Code As Above To Login !
And This Mode Is Available In Some Bots In Vietnam So You Can Rest assured!
__Guide With Appstate__
`js
const fs = require("fs");
const login = require("neha_khan");
var credentials = {email: "FB_EMAIL", password: "FB_PASSWORD"}; // tk information
login(credentials, (err, api) => {
if(err) return console.error(err);
// log in
fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t')); //create appstate
});
``
Or Easier (Professional) You Can Use => c3c-fbstate To Get Fbstate And Rename It To Apstate Is Also ! (appstate.json)
------------------------------------
FAQS => Link