diff --git a/example/web/tdweb/README.md b/example/web/tdweb/README.md index 26dd98cd..3f2ec6b0 100644 --- a/example/web/tdweb/README.md +++ b/example/web/tdweb/README.md @@ -17,3 +17,13 @@ which shouldn't be used in the JSON interface. The object type name is stored in Fields of Bool type are stored as Boolean, fields of int32, int53 and double types are stored as Number, fields of int64 and string types are stored as String, fields of bytes type are base64 encoded and then stored as String, fields of vector type are stored as Array. You can also add the field '@extra' to any query to TDLib and the response will contain the field '@extra' with exactly the same value. + +## Installation +As usual, add npm '@arseny30/tdweb' package into you project: +``` +npm install @arseny30/tdweb +``` + +All files will be installed into `node_modules/@arseny30/tdweb/dist/` folder. For now it is your responsibility to make +those files loadable from your server. For example, [telegram-react](https://github.com/evgeny-nadymov/telegram-react) +manually copies this files into the `public` folder. If you know how to avoid this problem, please tell us. diff --git a/example/web/tdweb/package-lock.json b/example/web/tdweb/package-lock.json index 5ab58760..feff05f8 100644 --- a/example/web/tdweb/package-lock.json +++ b/example/web/tdweb/package-lock.json @@ -1,6 +1,6 @@ { "name": "@arseny30/tdweb", - "version": "0.2.49", + "version": "1.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/example/web/tdweb/package.json b/example/web/tdweb/package.json index c15e1399..da54b002 100644 --- a/example/web/tdweb/package.json +++ b/example/web/tdweb/package.json @@ -1,6 +1,6 @@ { "name": "@arseny30/tdweb", - "version": "0.2.49", + "version": "1.4.0", "description": "Javascript interface for TDLib (telegram library)", "main": "dist/tdweb.js", "repository": {