@arseny30/tdweb -> tdweb
GitOrigin-RevId: a93238e7ee66c6403f67a212ef296c5c89f5e05a
This commit is contained in:
parent
a0bcb75b5a
commit
1a3d31949e
@ -305,7 +305,7 @@ function onOsChanged() {
|
||||
'See <a href="https://github.com/tdlib/td/blob/master/example/README.md#' + getExampleAnchor(language) + '">examples</a> of such usage and already available third-party frameworks.<br>';
|
||||
|
||||
if (target === 'WebAssembly') {
|
||||
text = 'TDLib is available in a prebuilt form as an <a href="https://www.npmjs.com/">NPM</a> package <a href="https://www.npmjs.com/package/@arseny30/tdweb">tdweb</a>.<br>' +
|
||||
text = 'TDLib is available in a prebuilt form as an <a href="https://www.npmjs.com/">NPM</a> package <a href="https://www.npmjs.com/package/tdweb">tdweb</a>.<br>' +
|
||||
'If you want to build it manually, take a look at our <a href="https://github.com/tdlib/td/tree/master/example/web">example</a>';
|
||||
target = '';
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
# TDLib Web example
|
||||
|
||||
This is an example of building `TDLib` for browsers using [Emscripten](https://github.com/kripken/emscripten).
|
||||
These scripts build `TDLib` and create an [NPM](https://www.npmjs.com/) package [tdweb](https://www.npmjs.com/package/@arseny30/tdweb).
|
||||
These scripts build `TDLib` and create an [NPM](https://www.npmjs.com/) package [tdweb](https://www.npmjs.com/package/tdweb).
|
||||
You need a Unix shell with `sed`, `tar` and `wget` utilities to run the provided scripts.
|
||||
|
||||
## Building tdweb NPM package
|
||||
@ -26,4 +26,4 @@ cd <path to TDLib sources>/example/web
|
||||
|
||||
## Using tdweb NPM package
|
||||
|
||||
See [tdweb](https://www.npmjs.com/package/@arseny30/tdweb) or [README.md](https://github.com/tdlib/td/tree/master/example/web/tdweb/README.md) for package documentation.
|
||||
See [tdweb](https://www.npmjs.com/package/tdweb) or [README.md](https://github.com/tdlib/td/tree/master/example/web/tdweb/README.md) for package documentation.
|
||||
|
@ -19,11 +19,11 @@ fields of bytes type are base64 encoded and then stored as String, fields of vec
|
||||
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:
|
||||
As usual, add npm tdweb package into you project:
|
||||
```
|
||||
npm install @arseny30/tdweb
|
||||
npm install tdweb
|
||||
```
|
||||
|
||||
All files will be installed into `node_modules/@arseny30/tdweb/dist/` folder. For now it is your responsibility to make
|
||||
All files will be installed into `node_modules/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.
|
||||
|
2
example/web/tdweb/package-lock.json
generated
2
example/web/tdweb/package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@arseny30/tdweb",
|
||||
"name": "tdweb",
|
||||
"version": "1.4.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@arseny30/tdweb",
|
||||
"name": "tdweb",
|
||||
"version": "1.4.0",
|
||||
"description": "Javascript interface for TDLib (telegram library)",
|
||||
"main": "dist/tdweb.js",
|
||||
|
Loading…
Reference in New Issue
Block a user