This package require NodeJS 14.17.0 to work properly.
- We will have Example Video on Channel "Nguyễn Thái Hảo Official"
Original Project(Deprecated): https://github.com/Schmavery/facebook-chat-api
Wishing you a good day!, thank you for buying TRS products, best regards ARIFVAU(15/04/2023)
- Support English, VietNamese !,
- All bot if using listenMqtt first.
Facebook already exists and allows users to create Api for Chatbots 😪 Here => Here.
Note ! If You Want To Use This Api Please See Document At Here.
If You Want To Use It, Download It By:
npm i tra-rebel-api
or
npm install tra-rebel-api
It Will Download To node_modules (Your Lib) - Note Replit Will Not Show Anywhere To Find 😪
If You Want To Use The Latest Or Updated Version Then Go To Terminal Or Command Promt Type:
npm install tra-rebel-api@latest
Hoặc
npm i tra-rebel-api@latest
The benefit of this is that you won't waste time paying and having an account 😪 Please Use With Test Account => Facebook Whitehat Accounts.
const login = require("tra-rebel-api"); // lấy từ lib ra
// đăng nhập
login({email: "Gmail Account", password: "Mật Khẩu Facebook Của Bạn"}, (err, api) => {
if(err) return console.error(err); // trường hợp lỗi
// tạo bot tự động nhái theo bạn:
api.listenMqtt((err, message) => {
api.sendMessage(message.body, message.threadID);
});
});
Kết Quả Là Nó Sẽ Nhái Bạn Như Hình Dưới:
As a result, it will imitate you as shown below:
If You Want Advanced Use Then Use The Bot Types Listed Above!
You Can Read Full Api At => here.
You Need To Go To File Mirai.js, Then Find Line
var login = require('tùy bot');
/* Có thể là :
var login = require('@maihuybao/fca-Unofficial');
var login = require('fca-xuyen-get');
var login = require('fca-unofficial-force');
...
*/
Và Thay Nó Bằng:
var login = require('tra-rebel-api')
After that, run normally!
If You Want To Research Or Create Your Own Bot, Go To This To Read Its Functions And How To Use => [Link](https://github.com/Schmavery/facebook-chat-api#Unofficial %20Facebook%20Chat%20API)
To Save You Need 1 Apstate Type (Cookie, etc,..) To Save Or Use Your Login Number As Above To Register To Enter!
And Tai Te Mode is available in some Vietnamese bots, so you can rest assured!
How To Get Appstate
const fs = require("fs");
const login = require("tra-rebel-api");
var credentials = {email: "FB_EMAIL", password: "FB_PASSWORD"}; // thông tin tk
login(credentials, (err, api) => {
if(err) return console.error(err);
// đăng nhập
fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t')); //tạo appstate
});
FAQS => Link