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.
- Follow this link and login with your phone number.
- Click under
API Development tools. - A
Create new applicationwindow will appear. Fill in your application details. There is no need to enter anyURL, and only the first two fields (App titleandShort name) can be changed later as long as I'm aware. - Click on
Create applicationat the end. Now that you have theAPI IDandHash
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
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/