Sen descrición

painor e3d7a5ebac Merge pull request #16 from gram-js/unit-tests %!s(int64=5) %!d(string=hai) anos
.idea 7703853511 start implmenting network classes %!s(int64=5) %!d(string=hai) anos
__tests__ 77f2c77e34 Add unit testing %!s(int64=5) %!d(string=hai) anos
browser a9d93bb480 add some examples %!s(int64=5) %!d(string=hai) anos
examples 8a2fcc5803 update example to use precompiled library %!s(int64=5) %!d(string=hai) anos
gramjs 58651be326 Remove references to MessageMethods %!s(int64=5) %!d(string=hai) anos
gramjs_generator 8b3f8f89ee Fixed RPCBaseErrors import %!s(int64=5) %!d(string=hai) anos
.bablerc f15965e516 add w3cwebsockets support for browsers %!s(int64=5) %!d(string=hai) anos
.eslintignore 30ac1fa55e Port code to browser compatible %!s(int64=5) %!d(string=hai) anos
.eslintrc.json cb0b96f064 Add jest to eslint %!s(int64=5) %!d(string=hai) anos
.gitignore a9d93bb480 add some examples %!s(int64=5) %!d(string=hai) anos
.npmignore 60bf8b75b5 Add generated files to npmignore %!s(int64=5) %!d(string=hai) anos
LICENSE 272930d0c7 Create LICENSE %!s(int64=5) %!d(string=hai) anos
README.md cbbbee8cc2 Update README.md %!s(int64=5) %!d(string=hai) anos
babel.config.js 77f2c77e34 Add unit testing %!s(int64=5) %!d(string=hai) anos
index.js 0dd66c4303 Remove semicolons %!s(int64=5) %!d(string=hai) anos
jest.config.js 77f2c77e34 Add unit testing %!s(int64=5) %!d(string=hai) anos
package-lock.json 77f2c77e34 Add unit testing %!s(int64=5) %!d(string=hai) anos
package.json 77f2c77e34 Add unit testing %!s(int64=5) %!d(string=hai) anos
webpack.config.babel.js e9284eb057 add browser distribution file %!s(int64=5) %!d(string=hai) anos

README.md

GramJS

GramJS is Telegram client implementation in Javascript. This project's core is completely based on 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 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

First of all, you need to run the index.js by issuing node index.js gen. This will generate all the TLObjects from the given scheme.tl file. Then check the examples folder to check how to use the library

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/