From a0bcb75b5a9e335128918dce59685ff8ca9828a2 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Tue, 30 Apr 2019 17:50:35 +0300 Subject: [PATCH] tdweb: 1.4.0 GitOrigin-RevId: eabed817c2c058a42c5ad09e11d8a843623ca78f --- example/web/tdweb/README.md | 10 ++++++++++ example/web/tdweb/package-lock.json | 2 +- example/web/tdweb/package.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/example/web/tdweb/README.md b/example/web/tdweb/README.md index 26dd98cd3..3f2ec6b03 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 5ab58760a..feff05f83 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 c15e13996..da54b0027 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": {