# gram-js-fork

> NodeJS MTProto API Telegram client library,

Latest version **1.0.0-alpha.14** (published 2021-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install gram-js-fork
pnpm add gram-js-fork
yarn add gram-js-fork
bun add gram-js-fork
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.14 |
| Published | 2021-02-01 |
| First published | 2021-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 553.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1764 |
| Author | Esen |
| Maintainers | s7b5en |

## Links

- npm: https://www.npmjs.com/package/gram-js-fork
- Repository: https://github.com/gram-js/gramjs
- Homepage: https://github.com/gram-js/gramjs#readme
- Issues: https://github.com/gram-js/gramjs/issues
- npm.io page: https://npm.io/package/gram-js-fork

## Dependencies (7)

- [jest](https://npm.io/package/jest.md) ^26.6.3
- [pako](https://npm.io/package/pako.md) ^1.0.10
- [websocket](https://npm.io/package/websocket.md) ^1.0.30
- [async-mutex](https://npm.io/package/async-mutex.md) ^0.1.4
- [big-integer](https://npm.io/package/big-integer.md) github:painor/BigInteger.js
- [browser-or-node](https://npm.io/package/browser-or-node.md) ^1.3.0
- [@cryptography/aes](https://npm.io/package/@cryptography/aes.md) ^0.1.1

## Recent versions

- 1.0.0-alpha.14 (latest) — 2021-02-01
- 1.0.0-alpha.13 — 2021-02-01
- 1.0.0-alpha.12 — 2021-02-01
- 1.0.0-alpha.11 — 2021-02-01
- 1.0.0-alpha.10 — 2021-02-01
- 1.0.0-alpha.9 — 2021-02-01
- 1.0.0-alpha.8 — 2021-02-01
- 1.0.0-alpha.7 — 2021-02-01
- 1.0.0-alpha.6 — 2021-02-01
- 1.0.0-alpha.5 — 2021-02-01
- 1.0.0-alpha.4 — 2021-02-01
- 1.0.0-alpha.3 — 2021-02-01
- 1.0.0-alpha.2 — 2021-02-01

## README

Publishing my untouched fork to NPM, as I need this project, but it's not there. I did nothing here, it just was not on the NPM.

# GramJS
**GramJS** is Telegram client implementation in Javascript. This project's _core_ is **completely based** on
[Telethon](https://github.com/LonamiWebs/Telethon). All the files which are fully based on it.
don't forget to have a look to the original project.

### Obtaining your `API ID` and `Hash`
1. Follow [this link](https://my.telegram.org) and login with your phone number.
2. Click under `API Development tools`.
3. A `Create new application` window will appear. Fill in your application details.
There is no need to enter any `URL`, and only the first two fields (`App title` and `Short name`)
can be changed later as long as I'm aware.
4. Click on `Create application` at the end. Now that you have the `API ID` and `Hash`

## Running GramJS
If you want to run in it in a browser just use webpack (a configuration file is already present). 
The output will be in `browser` folder.
In the browser gramjs will use localstorage to not regenerate api methods each run.
check the `examples` folder for more info.
Docs coming soon

## Using raw api
Currently you can use any raw api function using `await client.invoke(new RequestClass(args))` .
you can find all the requests and types at https://gram.js.org/

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