# tra-rebel-api

> Facebook-chat-api protect and deploy by ARIF VAU OWNER TRS Team

Latest version **2.6.3** (published 2023-10-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install tra-rebel-api
pnpm add tra-rebel-api
yarn add tra-rebel-api
bun add tra-rebel-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.6.3 |
| Published | 2023-10-21 |
| First published | 2023-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.x |
| Dependencies | 31 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Avery, David, Maude, Benjamin, UIRI, KanzuWakazaki,ARIFVAU |
| Maintainers | the-rebel-arifvau233 |
| Keywords | Fca rebel, tra-rebel-api, rebel fca, rebel |

## Links

- npm: https://www.npmjs.com/package/tra-rebel-api
- Repository: git:https://github.com/ARIF-VAU-TRA233/fca-rebel-api
- Homepage: https:https://github.com/ARIF-VAU-TRA233/fca-rebel-api#readme
- Issues: https:https://github.com/ARIF-VAU-TRA233/fca-rebel-api/issues
- npm.io page: https://npm.io/package/tra-rebel-api

## Dependencies (31)

- [os](https://npm.io/package/os.md) latest
- [ws](https://npm.io/package/ws.md) ^8.13.0
- [got](https://npm.io/package/got.md) ^11.8.6
- [mqtt](https://npm.io/package/mqtt.md) latest
- [path](https://npm.io/package/path.md) latest
- [uuid](https://npm.io/package/uuid.md) latest
- [chalk](https://npm.io/package/chalk.md) 4.1.2
- [aes-js](https://npm.io/package/aes-js.md) latest
- [assert](https://npm.io/package/assert.md) latest
- [lodash](https://npm.io/package/lodash.md) latest
- [moment](https://npm.io/package/moment.md) ^2.29.4
- [npmlog](https://npm.io/package/npmlog.md) latest
- [cheerio](https://npm.io/package/cheerio.md) latest
- [deasync](https://npm.io/package/deasync.md) ^0.1.28
- [express](https://npm.io/package/express.md) latest
- [request](https://npm.io/package/request.md) latest
- [bluebird](https://npm.io/package/bluebird.md) latest
- [encode32](https://npm.io/package/encode32.md) latest
- [file-url](https://npm.io/package/file-url.md) ^3.0.0
- [readline](https://npm.io/package/readline.md) latest
- [crypto-js](https://npm.io/package/crypto-js.md) latest
- [duplexify](https://npm.io/package/duplexify.md) ^4.1.2
- [pretty-ms](https://npm.io/package/pretty-ms.md) 7.0.1
- [speakeasy](https://npm.io/package/speakeasy.md) latest
- [is-hexcolor](https://npm.io/package/is-hexcolor.md) ^1.0.0
- [ansi-to-html](https://npm.io/package/ansi-to-html.md) latest
- [tough-cookie](https://npm.io/package/tough-cookie.md) ^4.1.2
- [better-sqlite3](https://npm.io/package/better-sqlite3.md) 7.6.2
- [totp-generator](https://npm.io/package/totp-generator.md) latest
- [readable-stream](https://npm.io/package/readable-stream.md) ^4.4.0
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) latest

## Recent versions

- 2.6.3 (latest) — 2023-10-21

## README

[![Socket Badge](https://socket.dev/api/badge/npm/package/tra-rebel-api)](https://socket.dev/npm/package/tra-rebel-api)

## Important !

<img width="517" alt="Reason" src="https://i.imgur.com/rD3ujmL.png">
This project is no longer being developed because the project owner lacks high security capabilities, leading to potential security vulnerabilities. Therefore, the project will be permanently suspended.

Special Thanks: 
![image](https://github.com/KanzuXHorizon/tra-rebel-api/assets/125113101/0a455054-b7f4-499d-b4b6-c91fd0569ce4)

This package require NodeJS 14.17.0 to work properly.

## Notification !

+ 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 For : 

+ Support English, VietNamese !,
+ All bot if using listenMqtt first.

# Api Cho ChatBot Messenger

Facebook already exists and allows users to create Api for Chatbots 😪 Here => [Here](https://developers.facebook.com/docs/messenger-platform).

### This Api Can Make You Payy Acc Like You Never Had Acc, Please Pay Attention =))

Note ! If You Want To Use This Api Please See Document At [Here](https://github.com/Schmavery/facebook-chat-api).

## Download

If You Want To Use It, Download It By:

```bash
npm i tra-rebel-api
```
or
```bash
npm install tra-rebel-api
```

It Will Download To node_modules (Your Lib) - Note Replit Will Not Show Anywhere To Find 😪

### Download Latest Version Or Update

If You Want To Use The Latest Or Updated Version Then Go To Terminal Or Command Promt Type:
```bash
npm install tra-rebel-api@latest
```
Hoặc
```bash
npm i tra-rebel-api@latest
```

### If You Want To Test Api

The benefit of this is that you won't waste time paying and having an account 😪
Please Use With Test Account => [Facebook Whitehat Accounts](https://www.facebook.com/whitehat/accounts/).

## Using

```javascript
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:
<img width="517" alt="screen shot 2016-11-04 at 14 36 00" src="https://cloud.githubusercontent.com/assets/4534692/20023545/f8c24130-a29d-11e6-9ef7-47568bdbc1f2.png">

As a result, it will imitate you as shown below:
<img width="517" alt="screen shot 2016-11-04 at 14 36 00" src="https://cloud.githubusercontent.com/assets/4534692/20023545/f8c24130-a29d-11e6-9ef7-47568bdbc1f2 .png">

If You Want Advanced Use Then Use The Bot Types Listed Above!

## List

You Can Read Full Api At => [here](DOCS.md).

## Settings For Mirai:

You Need To Go To File Mirai.js, Then Find Line
```js
    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:

```js
    var login = require('tra-rebel-api')
```

After that, run normally!

## Self-study

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)
________________

### Log In

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__

```js
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

FAQS => [Link](https://github.com/Schmavery/facebook-chat-api#FAQS)

---
_Source: https://npm.io/package/tra-rebel-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
