Sen descrición

Man Nguyen d23a7feeb6 fix: return type hint of client.unpinMessage %!s(int64=3) %!d(string=hai) anos
__tests__ cf4adfb77b Add friendly method getDialogs and iterDialogs %!s(int64=4) %!d(string=hai) anos
examples 24abd25a72 Improve Webpack configuration (#215) %!s(int64=3) %!d(string=hai) anos
gramjs d23a7feeb6 fix: return type hint of client.unpinMessage %!s(int64=3) %!d(string=hai) anos
.bablerc 00d5d83f0e refactor most code to TS %!s(int64=4) %!d(string=hai) anos
.gitignore c0033c6faf stop using mixins %!s(int64=4) %!d(string=hai) anos
.npmignore 50a443fee8 Fix npm package %!s(int64=4) %!d(string=hai) anos
.prettierignore cf4adfb77b Add friendly method getDialogs and iterDialogs %!s(int64=4) %!d(string=hai) anos
.prettierrc.json cf4adfb77b Add friendly method getDialogs and iterDialogs %!s(int64=4) %!d(string=hai) anos
LICENSE 272930d0c7 Create LICENSE %!s(int64=5) %!d(string=hai) anos
README.md 5ab0f2ad10 Correct bundle generation command (#214) %!s(int64=3) %!d(string=hai) anos
babel.config.js cf4adfb77b Add friendly method getDialogs and iterDialogs %!s(int64=4) %!d(string=hai) anos
empty.txt 0b41308b09 message %!s(int64=4) %!d(string=hai) anos
jest.config.js cf4adfb77b Add friendly method getDialogs and iterDialogs %!s(int64=4) %!d(string=hai) anos
npmpublish.bat c0033c6faf stop using mixins %!s(int64=4) %!d(string=hai) anos
package-lock.json 1c59ec113e chore: npm install %!s(int64=3) %!d(string=hai) anos
package.json 882274564c update version. %!s(int64=3) %!d(string=hai) anos
publish_npm.js f8160499d1 Use JS instead of TL files. %!s(int64=3) %!d(string=hai) anos
tsconfig.json fd71682fc3 use es2017 instead %!s(int64=3) %!d(string=hai) anos
type_doc.js 9cd0423068 Update docs %!s(int64=4) %!d(string=hai) anos
webpack.config.js 24abd25a72 Improve Webpack configuration (#215) %!s(int64=3) %!d(string=hai) anos

README.md

GramJS

A Telegram client written in JavaScript for Node.js and browsers, with its core being based on Telethon.

Obtaining your app ID and hash

  1. Follow this link, and login with your phone number.
  2. Click "API development tools".
  3. 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 modified later.
  4. Finally, click "Create application".

Running GramJS

GramJS can run on Node.js, browsers and with frameworks like React.

In browsers, GramJS will be using the localStorage to cache the layers.

To get a browser bundle of GramJS, use the following command:

NODE_ENV=production npx webpack

Using the raw API

Currently, you can call any raw API method like await client.invoke(new RequestClass(args)) . You can find all methods and types at gram.js.org.

Docs

Youu can find the docs at painor.gitbook.io/gramjs visit gram.js.org to see all supported API methods and types.

Asking questions

If you have any question about GramJS, feel free to open a issue or join us at the Telegram group, @GramJSChat.