|
@@ -9,13 +9,12 @@ don't forget to have a look to the original project.
|
|
|
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`,
|
|
|
-head to `api/` directory and create a copy of the `settings_example` file, naming it `settings` (lowercase!).
|
|
|
-Then fill the file with the corresponding values (your `api_id`, `api_hash` and phone number in international format).
|
|
|
+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. When it's done, you can run `node examples/main.js` to start the interactive example.
|
|
|
+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))` .
|