Žiadny popis

painor 44d24535f7 Add tsc support 4 rokov pred
.github 057be18646 massive overhaul 4 rokov pred
__tests__ 057be18646 massive overhaul 4 rokov pred
examples e1fe1d0d0f Update examples 4 rokov pred
gramjs 44d24535f7 Add tsc support 4 rokov pred
static fe4cacde72 Various fixes 4 rokov pred
.bablerc 8ba3946a51 Add ts support 4 rokov pred
.eslintignore 057be18646 massive overhaul 4 rokov pred
.eslintrc.json 057be18646 massive overhaul 4 rokov pred
.gitignore fe4cacde72 Various fixes 4 rokov pred
.npmignore 057be18646 massive overhaul 4 rokov pred
LICENSE 057be18646 massive overhaul 4 rokov pred
README.md 057be18646 massive overhaul 4 rokov pred
babel.config.js 057be18646 massive overhaul 4 rokov pred
empty.txt 0b41308b09 message 4 rokov pred
jest.config.js 057be18646 massive overhaul 4 rokov pred
package-lock.json 44d24535f7 Add tsc support 4 rokov pred
package.json 44d24535f7 Add tsc support 4 rokov pred
tsconfig.json 44d24535f7 Add tsc support 4 rokov pred
webpack.config.js 8ba3946a51 Add ts support 4 rokov pred

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/