tdweb: add 'init' and 'start' to the list of unsupported methods.
GitOrigin-RevId: 5bdb0dbcfee13fff76312d1408ff7c340732df88
This commit is contained in:
parent
a50a86b02a
commit
5cc40abeba
@ -1,10 +1,10 @@
|
||||
# TDLib Web example
|
||||
|
||||
This is an example of building `TDLib` for browsers using [Emscripten](https://github.com/kripken/emscripten).
|
||||
These scripts build `TDLib` and creates [NPM](https://www.npmjs.com/) package [tdweb](https://www.npmjs.com/package/@arseny30/tdweb);
|
||||
These scripts build `TDLib` and creates [NPM](https://www.npmjs.com/) package [tdweb](https://www.npmjs.com/package/@arseny30/tdweb).
|
||||
You need Unix shell with `sed`, `tar` and `wget` utilities to run provided scripts.
|
||||
|
||||
## Building TDLib
|
||||
## Building tdweb NPM package
|
||||
|
||||
* Install latest [emsdk](https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html). Do not use system-provided `emscripten` package, because it contains too old version.
|
||||
* Install all `TDLib` build dependencies as described in [Building](https://github.com/tdlib/td#building).
|
||||
|
@ -111,7 +111,7 @@ class TdClient {
|
||||
* @returns {Promise} Promise object represents the result of the query.
|
||||
*/
|
||||
send(query) {
|
||||
let unsupportedMethods = ['getStorageStatistics', 'getStorageStatisticsFast', 'optimizeStorage', 'addProxy'];
|
||||
let unsupportedMethods = ['getStorageStatistics', 'getStorageStatisticsFast', 'optimizeStorage', 'addProxy', 'init', 'start'];
|
||||
if (unsupportedMethods.includes(query['@type'])) {
|
||||
return; // TODO what we need to return?
|
||||
}
|
||||
|
Reference in New Issue
Block a user