Няма описание

Roj a43d05c9b0 Improve README (#206) преди 3 години
__tests__ cf4adfb77b Add friendly method getDialogs and iterDialogs преди 4 години
examples afecdb787b Catch errors in example. преди 3 години
gramjs 99b3a35307 Fix senderId when sending a message преди 3 години
.bablerc 00d5d83f0e refactor most code to TS преди 4 години
.gitignore c0033c6faf stop using mixins преди 4 години
.npmignore 50a443fee8 Fix npm package преди 4 години
.prettierignore cf4adfb77b Add friendly method getDialogs and iterDialogs преди 4 години
.prettierrc.json cf4adfb77b Add friendly method getDialogs and iterDialogs преди 4 години
LICENSE 272930d0c7 Create LICENSE преди 5 години
README.md a43d05c9b0 Improve README (#206) преди 3 години
babel.config.js cf4adfb77b Add friendly method getDialogs and iterDialogs преди 4 години
empty.txt 0b41308b09 message преди 4 години
jest.config.js cf4adfb77b Add friendly method getDialogs and iterDialogs преди 4 години
npmpublish.bat c0033c6faf stop using mixins преди 4 години
package-lock.json ba812f999b Fix empty input entities in RAW Api. преди 3 години
package.json 99b3a35307 Fix senderId when sending a message преди 3 години
publish_npm.js f8160499d1 Use JS instead of TL files. преди 3 години
tsconfig.json fd71682fc3 use es2017 instead преди 3 години
type_doc.js 9cd0423068 Update docs преди 3 години
webpack.config.js f8160499d1 Use JS instead of TL files. преди 3 години

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=development 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.