{"_id":"@airgram/web","_rev":"26-1897afdb992715d134f04210439a98e5","name":"@airgram/web","dist-tags":{"latest":"5.0.0","next":"2.3.0-next.16","tdlib-1.6.10":"3.3.0","tdlib-1.7.2":"4.1.0","tdlib-1.8.2":"5.1.1"},"versions":{"2.0.0-next.2":{"name":"@airgram/web","version":"2.0.0-next.2","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.0.0-next.2","tdweb":"^1.4.3"},"gitHead":"d315ebc2c402adc658b2be0655d185bdbcccfe11","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.0.0-next.2","_nodeVersion":"12.7.0","_npmVersion":"lerna/3.16.4/node@v12.7.0+x64 (darwin)","dist":{"integrity":"sha512-/P61rNAGiBT2wW4ZCSHEk+RkCK8jbCbbnbj8/1qli+bw7SeDMHCXOsDoDJBXVMYljrHY/NyiOfL6JA6D+VVaxg==","shasum":"309eeba12f001db4849d78ec9ddd6915bcdad403","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.0.0-next.2.tgz","fileCount":10,"unpackedSize":18173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddSSDCRA9TVsSAnZWagAAPuEP/jeVEPdlOxeVRJi6UIDG\nZB9npa2mTWBYIzyKIW5NrATeuA4vorq6OxFOLcP+dpcJySNqWKEpJbeT6NVg\n3rvyUa3z9YHDCxCK3RMHY8r1m8W6ke1jiMVMX2gq1OWacTsFq/MWHDIghLR6\nBbDBWMHyD21eVAhFWcFjd0Mlzjur6nrEvqZ0rhlVW7yj6SqJ/cCTEeFXd12G\nFlOUNfEcsoG6/Kk4L6A6Fig97UYiNqqVBVq6ttQ2dDT7WBt7UeptqYAZpIhf\n8PCqEbZVwcslcJyhhergeymN9g5520WDHMIQtvZMEp6y5vmfy87z5/f4YEkD\nNIRU4Hw9/ewWvdfGvfOnPulOZneonhJAVh9jMOpSsuqxTcfYt5Gkm/h/duay\nsyI+/W4K24LmVyd45EVDUrq1se9bAeagVGSSjEwBhXWeLQfxXRKeK1nTOvTE\nQu8gzPDqAh82jr8cYtWLgS1iZOymsihI8fECz5LP0m8jTVZmzLgrlzJu+IQc\n7w0gby3/wv/HFUc+j08MAaRCo8/bsSap5LMEbdoRSFpbAy6DUd2oD9HKdl4E\nSBxjoJrVo5Mr4nZX321G5ZWg77wHiY/ZsXhdqTPHtqjpTtgSeKpuL2ZVfn1i\n1SyENkKBrBVqTKnFWYZREF9HLybH4u0qlcoCEO/86P8Q9JuupN6IXC0uYlke\nTb4q\r\n=2tHk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNZkncP1eYetZxzmpIW5GI55/3rout3aoWlzYOz+Y8IAiEApTh6cCMJtl86kmJGmnx8OW/KRtJ3MsYpam+BSMPiwHk="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.0.0-next.2_1567958147197_0.9873390527494554"},"_hasShrinkwrap":false},"2.0.0":{"name":"@airgram/web","version":"2.0.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.0.0","tdweb":"^1.4.3"},"gitHead":"55742b7c663adc89e0b1af1f42095a3d0946966c","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.0.0","_nodeVersion":"12.7.0","_npmVersion":"lerna/3.16.4/node@v12.7.0+x64 (darwin)","dist":{"integrity":"sha512-9FD5HZhGWbv2Y6NCaQRVy8BsvAKn+k2iQ/bgojD7c08zJKxf/ov2sCKWV+VilybjU1m8J2EHizcqTfLC6f0gRw==","shasum":"df96668c98b913ded7fd8d5d59dc0cbd3367f4fa","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.0.0.tgz","fileCount":10,"unpackedSize":18159,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJde0wqCRA9TVsSAnZWagAASlMP/1bkxdiLlkdepzT+E036\n6i2rgVbvWYcXrQi348luDSmVSCPqRB3SWFiQ2iTHWahMvy7fbPDsNqVWnapk\nIgmj+hT7o7MTZoHMmYRuJzG0LEyIUCca8mg/TUG2Q9wZRO13e76K9z5bvA5J\n2ye5Bl1lSQbBFt33d7DKLRglzKD2n+mOC+QKxjZjshZGhwObaUcrxWCAS0oP\nB3M3Osgxg+BPEKFss4b5oqWsCGSsJlSqt7oZiTkubfhlPIsJowOYL+J7V4jL\nfc41YwDTjDyBGa4PbxPl3wXsfwk293kdr0nJQ3HoJ7VsU5JmhEqtKRq8un4f\ntMO9M6EFLgAYnJBCXbHXKdILBORI99thSEQ29W9Vd8n8VIWmX9u5SZn9hfcr\n675kwGdcUEzoqIUX6GrMyluH8okI8xL2Yfjw0lFJ3lrqi1Uhqfm17Bk7r3ZQ\niJ5XcaxRU0HwoTYw7Dx3x26jBgOEVNI8FQOLb0mw3q7I75peb43tTJ49tAN5\nH1gNkUUHB6OHAfDKBR7laB8UeXR121cIbdjsZnYBxaQ0SsMii6KlvCXivZ7i\nQXxNGm96et3GHQJ6t3hXeuz/2Cmd8l1Dwc/iynY5RQdVvw4FqEgtJum78WY4\nBXI6R8U60v4ZLRkYwYItDwinzgSemKp5ZbF0ww0FRgfQKV80FHRAU44yvxMQ\n0M4W\r\n=R3+a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqJ249CvBhk3Xr6tG2SiCuwEWLSwYFWmA5q/K2k5gKOAiB6rmq3V5NDbiUL8EgjwvFcniCgEs/j/JFphb5MI/vWzg=="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.0.0_1568361514287_0.7028655390680176"},"_hasShrinkwrap":false},"2.0.1":{"name":"@airgram/web","version":"2.0.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.0.1","tdweb":"^1.4.3"},"gitHead":"9d92e5b2028ca31d6631f6973b40d0a74a696da9","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.0.1","_nodeVersion":"12.7.0","_npmVersion":"lerna/3.16.4/node@v12.7.0+x64 (darwin)","dist":{"integrity":"sha512-RHAnUE/89slMoL0jrcmGmZFB1c3Fl++VorPReqvtbT9wumQgqhDaleUx3NfbCD5IQAP8u3xNf5VQe71FE88jHg==","shasum":"6858c056cb23c3aeabe77e28dea8073d565a8587","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.0.1.tgz","fileCount":10,"unpackedSize":18159,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJde4vXCRA9TVsSAnZWagAA3LgP/3mAwebgLoT4yBKxLPfc\nkSHxEhKf/P7MyzbgOp3ajl6v4RKNNLf+bnnXJMlm961QYpdR17a+ek0DF3Jd\nEuwUuZFbSDxfk6VZEdenE7sbElRvm5KCt3hhRV+pIGmjAa855FCij/M6sfT6\nuFNtDvsLaf8WkBnjWF46uQO3PJ/41b5vMJWduDLJVm5JoLmrot234fmW0S2R\n/q26Skz7t4jcZHJkI7VKUYGa7GrsDy1ffJEFw3sHi8YIxaPonucEoYyek89Z\ntWH/JTMyDJV/gQE3YD2sHMRbZGEenCKhPHwxLlygYV7ZRT10CkPC/XFpkArH\nL6FLtR2I0yXC4xrylW6Stc7e13BbECq/4sk/gvf1ZLpg2VIbiGrgCXxq1sFf\nElQNIhTWhv9cydIr/Fw9O8F5k+8Q+SQPY179aYqH9MUwRJD2gOBdKUNo1ncX\n4iPxT/InJh5STOXEZLw3dOJp9OZcczM2WZExCcjz+UwKnuRoWKykK8GiKz6b\nn1FDnMv1nLArgKS+Es26Rd/dmBYRTE9hpzG3kTppX3bHxfW97hLCGFPtCEdA\nsDAKNi4CqRQoE7LuLdcNwp1N7axt7iqWMbcFEC125hauFEydF7mWZovTX4+I\nbuwXyo9Avr4qj8KMmyinzfJxxzwiYhOq1oEfaCiCfAY6b7uBnUaKwqW0Rt7k\nGjS/\r\n=Bapp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8SpBuYiuQ5x66AZnupcHpsS28rxwugLrBYx5RmgAZiAiBcJmwjjikWgr71cUVclMuBjnVsmAnurGEKfcOzQdBu5g=="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.0.1_1568377815318_0.8928512853838961"},"_hasShrinkwrap":false},"2.1.0-next.0":{"name":"@airgram/web","version":"2.1.0-next.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.1.0-next.0","tdweb":"^1.4.3"},"gitHead":"295737b6c2a1736b0ff440e657ea7b0b38e8a69f","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.1.0-next.0","_nodeVersion":"12.7.0","_npmVersion":"lerna/3.16.4/node@v12.7.0+x64 (darwin)","dist":{"integrity":"sha512-dZAwoUCujdnHHB0J9dNJKVYK4N/q820AdJOoIrvb6agdYWzfCLRjWdk2hHJKQXPH/mD4+O3I09HPnf0XLZcW1Q==","shasum":"3a51fa98ea0203b156b693730e468c347fbadfc9","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.1.0-next.0.tgz","fileCount":10,"unpackedSize":18118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdhZrdCRA9TVsSAnZWagAAKVkQAILcF5KdlXcE1RbM+n5N\n4rHdzaYND5fyAmpdH95FxdfB2w0IJEmNoXtuQ53JtQZYpdJMe/E0gUBdhIqz\nBIGpVCkXgBbyW3iBQQ79V6A8QHWPwtzxC7S2f1zqNeLfJAvEtAWxGHUUUHdU\nEVcTsYUNEAYJJmFSXa9h1pAL56frvT5oE7OvVQONZpdbSR/a/aArLGS+5zMn\nXSDj6cS5pXtycBo/jrzMJpUa+W1BDfvJlpsK7EfI42dz/kfZLAngZn3YPLYq\nKY+4bfhLCqrHyM+r8p32+BEYlTjX6+itnW2Y+oLOlyrz/ZMnYDE01I22s8ul\n+2pSYi9gsCom7RGDOHgs0OwZ6Ss/bEmxdiFrzGsW1u6ONJcaeKEP9oy2ArcK\n2AfkoNHsxiQkefB+w/4qC5zeqvFeoyD779RPq96tcLY9HpyUTAJpRo3MNh9a\nAZd1fJNcAn/GXUfGRFaqTq8V+a12J6j4dUIENHxDMH65EdEjbjtGTC8WV+8y\nbRIks0EtXKSYYlheqxYFgC7uIx1yIVQ/j5k5LnK57MuxBxA4f0INf6M0fLzv\nJBaFS5NIJhWokT/BoaZ5gRBODTZirwN7L5iCM+5Wf9OhAzS/+uMJIy2doJtu\nmzhSXAMrjuPMuj4U+o6sBkdKf/eS9I/Q1b4+FBbA/yHPEpQmrwxG6HnILjIg\nUvcG\r\n=FDBl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP/GlRdOaNDRqjtaoc4oLTa0VmZIFZQAY9qeye6K+3xQIgQpVGAlc99f2no3QbpVbCt2sJzHg+xRDgLi4YdyXqVfY="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.1.0-next.0_1569037020717_0.7485390641892735"},"_hasShrinkwrap":false},"2.1.0-next.1":{"name":"@airgram/web","version":"2.1.0-next.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.1.0-next.1","tdweb":"^1.4.3"},"gitHead":"5bdd3b49599fd7f1c7b415f78312f68e1f47ab77","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.1.0-next.1","_nodeVersion":"12.7.0","_npmVersion":"lerna/3.16.4/node@v12.7.0+x64 (darwin)","dist":{"integrity":"sha512-wj6vurtoIo4ri9qx699UMMfB2TS4O+n2BTRh/0uWpc6JgAKORGcyftboza3Ie5dSP0y+KWlDdpsvmWRW2Ywjyg==","shasum":"652dcf92bcd0324c177048f3bb9684424b9f9e5c","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.1.0-next.1.tgz","fileCount":10,"unpackedSize":17577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdhdA0CRA9TVsSAnZWagAAdFcP/iFDF5FxHldGEmmFuOZG\nR1MjHgMk8cVlbO/K0MXbF7iYAhXj7IwAEtxWVFwlS/ZQTbwOD7s/WEluqURX\nO598HZntqxGkGGn7hUpcAEgwRMPB47/vss5gsTVhHzc+BTuD4qYTiT4/Slnj\naZ6ssgHjskYHkb0D4GdpBuCzHTReO29A9F5AFitVCJwR7J+oa/6U1af0kgUY\nQbfA+ydqYVUap6lF8GYcKS6AjFuFyEvR136NheYzcFGPAq5tsUVJzcIUzpU1\n8AI5ypW8/ALCHS+QHEnDiMijV43vY+iiaEvYNY0t//zdMeTRk4QPRew/C2Jr\nWrhPXNxFS9xWXZdgi9fljbb2nZKJpWm9qwFq7lO57jQ/8jJLkpozqefBA3u+\nsYzmW/rela6DEsR1bfPviqhRij88L+btTQKD2ftE9BjUNDY3F1Mn/St4W3cd\ndE75R+rouwdUAKTYI4RNK+f2c7ubZHqq/naQ36Mi7PItyqIPh27cwdib4QlZ\nwg2BY/942je/SuKs6w5zj88q8zCv3jrB+RDI3x/0aVhUkZSWN0S3uNjBTUQ2\nuJzyYaEG8knSxHwwjxEOXs7pKGoVWc4h6RR403w5pkmWhWf3tmlccKocqkk9\n3k4Rg7v/VWxgV70tLb6jcuHcj35kB8vjl7E6jEVK9Gwl8x9aXD2Wx3XSB2+h\n3v8s\r\n=AOUQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC77dzgjXrGHCdjPOrbEu0eAy8ZFDpqHt7s4GSjemwGygIhALmEZjCnjWbhZabuqRjkhDwB396z3AouobqAlR+fbu0V"}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.1.0-next.1_1569050676008_0.5916364958008358"},"_hasShrinkwrap":false},"2.1.0":{"name":"@airgram/web","version":"2.1.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.1.0","tdweb":"^1.4.3"},"gitHead":"60f2dbdbf5b0178563c238a6bd9375823c0c4113","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.1.0","_nodeVersion":"12.7.0","_npmVersion":"lerna/3.16.4/node@v12.7.0+x64 (darwin)","dist":{"integrity":"sha512-+P9p5vxP6kjGVUQUGklHMzv2WPVjp0lVLIavHxruCkUty3RzyJzxgV7xiL0pcFp/HmcoKHx5/YSDEOL/baellg==","shasum":"36a0470a16d7e7696811fa7923195cbb23b9b8eb","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.1.0.tgz","fileCount":10,"unpackedSize":17563,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiA3KCRA9TVsSAnZWagAAWjAP/RU2rbfJ0+XLX+Hh9Sq3\nAYL2EpvWC+F7jM7NKp/E83NYeIU/N0vkIJC/AtyuIH8a7/5pnwfw7tcDpzD9\nYtWCR/6eItbI2t5wPX2Ytj+Us5FiTZFPdtY5SzBkTePs+Ns3BoAKso/SPRyg\nD/vjR6Sz7UrMf5PZIbd9QHjz1aUR5qnJz3GOi5uRjqgtHwXRlWQTRCLF6M/b\nl6lktj1GyI/1P3yyquE301/hRxv2HKVIHrHjI0Q7bC0z/qo2Wu0hfqWQ0Gst\nVqmYdyInZmgYDm31vbM8T6j9Ob0rb9cnssT9WLAkpkeNqgppe4s6BE+zfd6z\nK+vBgd++Sey+pqOixrM++98L4lGHpW5hX3IeoxDelE8zttLn2Ut+qP/6CtBk\njj4uIuAUFWBM0cMW6NFT3DXxcnsHgVhmf20/t8YR8rKJCJvYNe3xrkO5auzo\n9b6iLuzT1QpmsKTPt+xtxTiql68RS077VEgX5aZFxR8dkk9hb8tHpdasT26w\ngw+PkPA2kopZSok7zUW0rnJ4UVLC4eoB8iqq0AcfEZSTg9HsvOt7dM5Mu4Su\n4B43G3zhiDkCto60yTD4prRzoa3hrJqlkMVhXw1MrlkDVujoWoNzroeoXrTR\nPqwnU+4gkkboqRcffbv4R0uMNHq4EesmH/bnEOAQXGHCWLLN/us1YPs3hKyF\njDyE\r\n=dCjl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEJtOGJQRxZySvGBsqPniyUs8ehijmVcYYqbZMfnyiJAiEAqWcCCsHc2YYpF/fF4aEiNZMUcrq5bsjK2IGpdVcOn3M="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.1.0_1569197514143_0.8038631829023537"},"_hasShrinkwrap":false},"2.1.1":{"name":"@airgram/web","version":"2.1.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.1.1","tdweb":"~1.5.0"},"gitHead":"5d0b784b9d2b9a786a2c2d91a623371168799568","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.1.1","_nodeVersion":"12.7.0","_npmVersion":"lerna/3.16.4/node@v12.7.0+x64 (darwin)","dist":{"integrity":"sha512-Z+F/XGm644oVNM10dJaQ3i7SAKjPMFhLw7Jns6QTY5TKVjwoHxTpphkuwDYNV9brKNWB2aPgpJmU6BN7kuWuZw==","shasum":"4abb2ba6fe3e37799f8eab2ad00732a4321cf14a","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.1.1.tgz","fileCount":10,"unpackedSize":17563,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxBMjCRA9TVsSAnZWagAAwloP/RSkbpIw9cfHsGZirElP\nTYjRdccxhbpLNeMN1Zy0nfhglA7h0EUrYQzdY40AdkrYmNvBydh+fTn5vCUO\nmQLVNbNXbZZsSCbNET86mx/Zayv2bAtDVMOSTJwSEVON0boYMB2F7AAK28Xt\nXQaxKuL2xOFC5F4ft3lGcew16gezO/BiscfZHxRQcGS5tWHy1bsh5DOxt9NM\nBF/BrcO4Gj21cpeIDdKVDcYCrWzjbEQ/0E+YxCF+PTuLA8IIl1eJx9SRUvGI\nW08ruLa1gx6eqL528Iht502aLAXdanJ547VIhZ1LR1Bs7Odm5/pOBL+jJSHI\nMKbeKfJ0LE04/gKc3wkXdWhHvX/ny//6Pq6fG1EcoZbIibShS7BDTHlDsb7z\n/qR2sAqNf6cyzhoZYDLxO26WArob8ObemvvBV5TRRTn1OB5t4mIutq/eHUpQ\nS3U5kwsVX1giORKCIRGiL7KzfWYhFe8KSUmy6bei5aGbOTNsBhUCu7rIwham\nK0hVH/0jcZ83f2ZXn442yPBvOvixv6G87r/Sd8QyVIdhWDehvf9tjoPRzbVi\nf3Ch2WzlTMslPz85vElGLwcD0V1XThMDXxeQkm2veTxjB3QCs/wGPS0W5kmJ\npVtHlR/yKxI55TANTuqA6Iv9mte+nVS4J3s8zsXEex+41k0WjpgI8M5TYCV3\n+pGa\r\n=KhXC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsN8B3mkEIe14sY2OgJ6gQl6qPjOKJ7i1PJ1S6r6U68AIhAL5rJJrpGmcJ0pOAiNNmP37iavp1haAJMfwsSWyVag2L"}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.1.1_1573131042603_0.7270752902430286"},"_hasShrinkwrap":false},"2.3.0-next.9":{"name":"@airgram/web","version":"2.3.0-next.9","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.3.0-next.10","tdweb":"~1.5.0"},"gitHead":"bedd531e71bf9de8570861db4ec4833c689936ee","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.3.0-next.9","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.16.4/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-atWZxxerlAPQQoF46rLqrh0qUGCQ2ke9D0CeIO6YVnbJmG6tDk+rnC2mux3ZtqdGP2fF3FWwPJSC6VIKLn9+1g==","shasum":"bbea32a9a3758aa1105481bdf35c3cd6ac49eaa0","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.3.0-next.9.tgz","fileCount":20,"unpackedSize":29550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0ZK9CRA9TVsSAnZWagAAqCgP/ijEJHjFjp9NV6aCNjlF\nnhlsYGgFbjOEBQDKbCdm8MhcLnU0DRo47YcfVgvrtniWevnx6b+WmRRCXpQ/\n8KU+0F65LwvlUS2SlD6Yur3D8CH06zlOElL7kAtnofAVpc+Oj7U0ri1+1iXP\nyRA1W5qBLfW82aHxk371GXHf12NTg91Y8vpHBplhXG4yk2mzk/7fBwT+ecmW\nlqeycfG/f5pHzk+1UjWTvz6dTs1cn42MQdr/vEXGj7Kvc+/uinfLQa9N5LQK\nDChW4hzEwLWNluuN4bCx+cXfapP6Jbtt9hhoU5//s2/NnYSPyEZZixv39soE\nAG8uscocr7ZgI1T3NOLXArhXX0f5Zpz34vsTR9/XmGy2+kzOaSUCITPq7ysZ\nPolOokrXkm2QoCzzpfQQc2fKb8kpqAx8ZkGsVtVH/1ioi0n/1PJmXkFU8lmO\nUHGOfXmeJCDKCvE+Nw1uAbU82zPXCCyEJv3vM07uZvAwgLVs+MUCeiaiT2xM\nZCvBtoQzf3CdGyIXMyEXIFaXPXBdJ6pojSsVBEljFxPG6gWC9fbqt0+I5hnK\nfKJTLC3TTZ3AWd33KYAkStbzDs4z3ThUGdBv64sdgJVUdIXIphEwAohuBqyi\nDPFN/eokloY8mjgqay/tJ8VSJsusqMZReuFeUde6T7Wpvw1oFAfbpJZzWdok\nt6RH\r\n=Pu7D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl1LErDP9Pq/NTALZgpvqB1Bytrgm5xn+Q8kEPPBoW3wIgTN6ITuC1LKDnYGhOFz1VWC9OmZJGXy953m0a7HzT6EE="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.3.0-next.9_1574015677576_0.6402698492362502"},"_hasShrinkwrap":false},"2.3.0":{"name":"@airgram/web","version":"2.3.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.3.0","tdweb":"~1.5.0"},"gitHead":"0308806bde66dceb0c8701eabfe81168566c2ffc","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.3.0","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.16.4/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-vjgF8LrQBG4Gg/4hV4YS8CDmPFtWPRi+7Cwbx528t7RuAodWMVbzz3djvGPrkp7/HDX+VQyR3LWIstyRr6mnHw==","shasum":"c858fd755102072b2fb251f29f8886f25c4ff174","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.3.0.tgz","fileCount":20,"unpackedSize":29535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3jWrCRA9TVsSAnZWagAA798P/RQQUjNKIbbtDkR/KHrd\nfQg4v7Q2Mj1uqlibmymhLJ3x8Yl2rVU3fAzZYOMuiiU6ElMuN7IPVG7BcdoQ\nuG9MFeqlrXzjTd9Ryfu0RN/EB9quRgfeu3OzaDv0M6jy5VRvQDAfv/Y4md63\nPp3yJbxHXjoLh2V+n1ZNYCzcYvEk0mkT2QbzBHBha1tvmkfW2Hzm80qS7CVF\n3LPTrbO9xSQf2Wo1xUV9clR8pI3TZUSXeazYhtgKuuuRRm2vlbMFUC5G0Eze\nWesB3ziiPBrcpljH1znAnc4Ani0aU7HZqyOzIhB0ttKpamaZiyNuEz/qsOXb\nnu/1FYD/Cp2TnrqZ7n33fZ7FtmLypBmxLtp3weldJYI75P8odUJy6y0sTaXl\nk5RmfVo8R12FdfvCk6dt6mJb+XZXcxtaTKCvHWKv+cl9t8piaqW1IV3BcGDi\nzTKBiLIUafmJ+0nHBRR48Z3R6ilIL/kntVIQPvuA86sFYDQ1oeTIrv9cMdM7\nCqHmXFvpJZ2iajftKW4aj9hQHyJPtS/NDqgwY3DmMr/xk+MAKeQ6S5UFRgMJ\nQiVpEGZOCmeYjPrCuZFjIeKQvSV1VgBrUOAEb2yuESaw3YLlKfP4NuJaIHE8\ndzor/ictjdFhDnO+kWC65+dwcVLlMbM7ytiG2jd+MqExLWBDZqiVUZqD0Q6D\nHB2E\r\n=3cUw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcjLaRW28tFnu/RJDTTrtHu/FDg/6SyEoPPJ4CrAyzmAiB7FeJmLOxR/ABAJi3MfmjTd3pVkVbiykhXlxVnTmG4eg=="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.3.0_1574843819169_0.3805224184807403"},"_hasShrinkwrap":false},"2.3.0-next.11":{"name":"@airgram/web","version":"2.3.0-next.11","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.3.0-next.12","tdweb":"~1.5.0"},"gitHead":"4a02fb02b83ae27d28f6ee82337f16359536cbff","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.3.0-next.11","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.19.0/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-aTP2Xdrmezl3I2uINmWVjIah7X/b+0mQbbhN6JkIavrUy9x+vcUtfs/Ah0WGybbqafFP5cn0lgDsEf/57cFGow==","shasum":"db6fe124ce2325fbd1f6a4aef645e704a1557838","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.3.0-next.11.tgz","fileCount":20,"unpackedSize":30051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9JT8CRA9TVsSAnZWagAArbAP/2w2kgPmkvl1udEw5/6M\ny/Y9PK8KijtWXf3L5BXlZQ29tgVdWWyAKn0s7QXNrdyBrPFh/G2m9d+sN8jQ\nP05o4AYY4cOvUmRw04708zJIXFG7RSgqDSOxbZDP1fSeJtYEFr7hKxuleJdK\nAiJIuLomfUlQz6O5N7GlaFeL/wJHaW0UpLAMEZwJvKksehoz/9fukifj65kK\nDdqMOFQMJXYl+JYDpyxgk31JHBInlJWTCGlt4MXiis0sbgD3neacXFz7x4np\nrhYLLBXg0HSytdE78vVBM0ttOJpwHYYhQfeTwACOgyvpYaPt3+Cw1SWkKelx\nw4HiaV3UFqn/Z+vTNUTrKxre4rjKU66pC8d55i63L1zwUVZ6wmThvyvpeFCZ\nDoknpNDtnyE/L70Q2dVeT9R98/pu6iGu4wxBdlHv4DqfwnYwCQYZ4NcGQoro\n0IOFaDF/oMvCeNIUlH21lw6E+3F2ELRHTfH3HLqiMWAndnTTh1u5Ji8JbJsL\nxMbbAYExYUYj+SklGjHIBco9PL45Uj/EFTQYUcZWSUNsCSzvPNyEPNsYW/tp\nlUFUB6p8m/dT9q5PsPwRtmCYuxBtBhA7J5AFj8rTrvF2yRPCphA6JLbmYmhz\n7mjQUo2nVDRAtziT+7tdjk09RCrUH3REEJNY8GyEccaVpPQu70lVMQw3GBef\nc/9+\r\n=ee1I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDc47azVzL0JWzmTMySt+6bYftQQEfxFiDNB8Yzg4CRgIgZ2leNXpbyBbHgszmcVngibPPckEbhzk3hwpGtBI7LHs="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.3.0-next.11_1576310012605_0.748329468201103"},"_hasShrinkwrap":false},"2.3.0-next.13":{"name":"@airgram/web","version":"2.3.0-next.13","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.3.0-next.14","tdweb":"~1.5.0"},"gitHead":"86116df943d40f17f3b5cdbaead57709ef1e2cf0","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.3.0-next.13","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.19.0/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-D5LNOA+Lhn5RPMvxLyUhbOJ+Z5xxuio3ORnMcgfoZfb1ir1woEwWERXwMk0bWM51EoQUMLsmVK7XLtkoJ6V6Ww==","shasum":"53efc5fec3d5cd52a29475232a04feed629f55c0","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.3.0-next.13.tgz","fileCount":20,"unpackedSize":30051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9JuGCRA9TVsSAnZWagAAqocP/2SvWMKJKvAkUO4HGqVs\n/DyNNbr2rBPw0u8edIymFxt2AOkAaQbHKinxI79q0Hf/8pZohOXhop2fE2Qd\n3KCgRPusZWS2vtxWS5pGswhnPNZ7a3tzlKbjgg0LfRIChCvNCh6HbAUg2Co/\nuv75Dvz4HKW/c9dAB0MtOVz8SXmTVtfRsMLfH2MWrcrolMmlRYJUIG07MixQ\nrDzEvbyLV8V7TmsQ6sbMsyC1kf7TyRMXaUMQXvB1mTbSwwtGPH48ByT6BjZn\n0akAImbaKUlRwC7pFM8J5bEFxHK0ZzR9KY2BX2SnKMqyBa2UIE8wfjnIHVly\nIpuvYAvhfygxZhstFILz9QhXRUed/Q6ZMl3KkFZtpI3EYF0XhCvn4E+4dD5P\ntBnHXoceYaHn4cOhOdA42KReCI77dfD1tdWH579bYhU6GfHVCkvFCUI5zk5i\n+19EqPFfcKNUxwFKoiLYfET+esH2lIi4WiBIzmSiksrXjD5g6YOj3U+KV2+y\nSXpbmmeSBj0Umt9rggvh/YGDjf6LJvq4x4IQwfQnO4YjFW0/GSBzcwbdHIec\n+C8hP0yHQrrmu7GOEuA1wh3lAq6bsLNbOHXQYhlEX5t/7eU6nrOcFdH+0CFw\nVCzl0/q7u4ccY+rdkumYq6yCBJ7D2/lz3YTt3lwKZ2uidDeeFV/kYOfZ8mIq\nZyrh\r\n=yhS0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVxi7eo9cKDddcJDymSUtuXuGS88oQmYnRcoxORgkhNAiEAqKXXjVAQnGwMWbxuDOptAIPIE14bj+YaF7+HprZy7w4="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.3.0-next.13_1576311686040_0.7619859620358447"},"_hasShrinkwrap":false},"2.3.0-next.15":{"name":"@airgram/web","version":"2.3.0-next.15","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.3.0-next.16","tdweb":"~1.5.0"},"gitHead":"4f9f43510e40f5266cf169665309c4fb691beaec","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.3.0-next.15","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.20.2/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-ECfSpDzFfDJVV+wiaklRN7bZNaKCK92IeN/8TzzS5xvUhtrfWxb3WT7mxo8wI52KFJMZQVzwh+TP0GjYEuLdbg==","shasum":"b5470a49f54767df1da4e7c8902625c2c579c1b3","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.3.0-next.15.tgz","fileCount":20,"unpackedSize":30051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKFR6CRA9TVsSAnZWagAAReYP/3Z+91fJVz9chtc3MJ5P\n4jG/6Bi5jSOO/Wfq9Gizka1E+cLkbDW/irvtE8pFTLOkLEsJkHXE4UTHnrPG\n1y5L3j+wlBadRjTIltOvKUN039fnKoVzZUYX+QaZbLQnqau1Izq8Bu896+c1\nCfR+JbbRZMLUlYqEaHGfBE1dKQfdvTr1z3J0ZbUJtEAx5oN7VzRWuI4KC302\nfwz+Je/Q2SSBkL4rsPk+UWtsD607TLyCfp+O+shD9fdzkY/PKfbRS6Q+ARbg\nKkW/6QJZdBGR3OgZb4RR4LKRMkLXAgtYmlcNyy7eJ+tL329UMcRafYcrq/sl\nZqk7KHUO0MJpQeD9mr82PNgtedVL9Hqsqgu12JEEYPF6iENCXd3xneJVqG3r\nNjaxdOcRDOOjnaZgZetmHgr2acqKsXPWYJyg1YLo93xRuc1aHLrBsdVWtn+O\n+c8GWPP6X2UIIu+6zgHgurdXRdh1g0MOlyeYsRERRc2uxE2c3JtXq+tr6VXJ\ntc4l2QFKkx7+xa1FiyHcDeH3QYo9LtnYTB9o4kIx4rA0cE+LghG8OJk6u3o0\nesbGsjFRCryB4yCTWzxCPwfHbrXQQgmSjnbJbYwzvWyO7ubHGfXY11HDqf73\n7VYaIS+vaiuWGRV5P2cxU9Z7Lyx/HVKo01tMoXyQakOX80dvk5+Z/KUKYjeE\nGS9v\r\n=tm4N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGX+fCZD70mdYBjSN5eTCdFozr6keJmf2okqcumBRDLtAiEArjFn99VnCgR7oER3jPaUGa4SBbhIyGpEKA+ZCpK2rtI="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.3.0-next.15_1579701369830_0.5414466888923704"},"_hasShrinkwrap":false},"2.3.0-next.16":{"name":"@airgram/web","version":"2.3.0-next.16","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^2.3.0-next.17","tdweb":"~1.5.0"},"gitHead":"51e95d394c742998ed04c215d8f68578db63c049","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@2.3.0-next.16","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.20.2/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-9jb0hRdwWFwmJlld4CC1p69T6c3yH+EXBKytxZudzBkYi0eV37NRE8uHp/eq8Yo7TBX1HaKd6WWiBOVD69R6NA==","shasum":"a4bf47f4fb344b03d4aa4be0d898c5ef0fc8a698","tarball":"https://registry.npmjs.org/@airgram/web/-/web-2.3.0-next.16.tgz","fileCount":16,"unpackedSize":21541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNV1eCRA9TVsSAnZWagAASC0P/Ak5TabI+Cf4Ylbw/C7a\nX/E31f1ZO684oAUU/AVtaRWKnxgo8rEchs1xiGTtPncJna+fvhbumQ/TM0zP\n1hSizTxjZN6F/VzSOPMVfRvZvs3HkGUXiwPIcq9eHzz29s0RYrk+zuX0iawV\n+jS1hC0uoXiXoxUmk2E2jDOVYq/8SyGuPxkiZLZ3U00A+UzcajRvSK5tyuTi\nbIgpO3cqsiwEFjK9QnZ6NT42PxlrPgP4eRz8e5e+PKtH+B+7vtF9wZhHAlh/\nMs9nYEghT/tXvWRY0kmyd302OeKxEESwKr0DFqFSqYLciU2J4I5+AewPy2GF\nTQmUCKEF4dY6Xp0lnNzby8ROjb2+LRWpM/bwRBiJRbieQk7rylArMBib6uOl\nZk+Vg3YKW/zj3n9aLyt/Y6oj/kWBYFn6h3b3fdGCeaCnFoBzmHpRyM4ek9R7\nqyaGSQW5jX31mytYCNuGT0qOf62G76aUtaDaZGp5zYHBbWXREmeP5EOA1eGh\nXXDQWK0qO+UnX8Z5FXfP981gLQDe/2f/ICSKb9gzgCDkYii4tVRqDEC0TvAr\nbJcVKELYQDBPIIVCoMBls3W+A2iOzBObutcRBVVOa4Jg3CS1wKaXf4nKcVYu\n0gRyonnAF+dRI4nKVDhR35jGzIVZIhcGm/XSxkjrzpbWDVvm0VaUh9yYT8Yv\n6e6W\r\n=LiuK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtrB+vNW9BUOa55F2ZbODWkCTBjcaQx+1LA0Nn5asw6AIhAPWhnu2xPAC4FOGeWn7roDSadH7MVCs+l+zc5Sfo+Dvu"}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_2.3.0-next.16_1580555614424_0.5476097832927873"},"_hasShrinkwrap":false},"3.0.0":{"name":"@airgram/web","version":"3.0.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^3.0.0","tdweb":"~1.5.0"},"gitHead":"8132fb474b0140c32f40ff9460fd1f5cb55911e1","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@3.0.0","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.20.2/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-NwCGnDXX3Fdzs6Hnxk3CzgoBl968/QWfH8yiyEtQZZX03QIIWPTOb8QlEI5iyu1L94tBKSDGI/au5yoxRkSY/Q==","shasum":"0d9601c54db2ee7b5f801e8302f8a839b95ddd74","tarball":"https://registry.npmjs.org/@airgram/web/-/web-3.0.0.tgz","fileCount":16,"unpackedSize":21525,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNWCYCRA9TVsSAnZWagAAopkQAJNQoJoS1+xy+ixLeJqX\n2bBAD/EBvJYqzsy/T7ziJLGVpIqJVcrGK6L94AsPC+VN8gCNGLSMd07LX5J0\nIk4qvkv6zf+2x18Ri5c9xPu+hanSiuYcGN2uso6braTkOoaKpdxkRHK0+jU5\nQvhB4C57dJ9MEVfLsWyf9KpsYC6RmwguS2WQDq1zqk9zZOBcdaL+ZmhLZste\nNDXUR6z0ahfAkzZkM/YaroThcjUI+TyYmzBYLtQ0Y5BLZAwOeU5NJ2o50xfV\nkIKKLfBn/t1CxJiyuuU9wtI5QaMqQvc/Rk1n/CgincE+hX1qfZ3xRMmaO3y0\nZ5riFcTp7+0WSsJctpC27u35mRrACo5BR27ytaBqHxkK1wQ/Ay8N7Pi2vjN9\nIForsW2gCmc+PzwjPmfIhwvTspPWfiTs2cH86ElQQz6ez8Lt0bXx7EWwWBBr\nN9ci38RlGdmdFDazof4vePFw0iz33Mca+AdnAmxwWKQ4N+YZj9U6w7dVIxVr\n3xvqFvT4qFAw2kEavHodWNHyZhEDf9uOozvFWQS/xmczqFARZmUC/pGHbmtM\nW4rrS5q+fYNOTomRvn6RdwJrPFSb/F/mzyG6aO9JmHVqIYEoHTy3EyFSqCok\ntkxSK68xQ7voK3J9ajnaPv10MjHejXFK5OLg+TG5m42kEzTv7AlP93Em2wbH\n+92B\r\n=6NSg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDiHXlu9VdiU7yfV67l08AyLD51Kn0FbsdpWJLBZXordAiEAqTO6jVoQo61m0CIg6LARPf3mTv6Nyes3FfRetYZRS+o="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_3.0.0_1580556439814_0.9167957570397711"},"_hasShrinkwrap":false},"3.0.1":{"name":"@airgram/web","version":"3.0.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^3.0.1","tdweb":"~1.5.0"},"gitHead":"8c7a57823fd92f9060c81deae443da7d7b59a9c8","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@3.0.1","_nodeVersion":"12.12.0","_npmVersion":"lerna/3.20.2/node@v12.12.0+x64 (darwin)","dist":{"integrity":"sha512-h1TP7q6PZ8JRTrHeI8osz6NF31enhnz49fU+e7z8bKkwK+vnQKxz0wiJ2ZtpPEv7PKzMb2EGZsmeY3VjuEUJmA==","shasum":"a4df4f13b3f1201b9074ac822ec9c8fb44de649b","tarball":"https://registry.npmjs.org/@airgram/web/-/web-3.0.1.tgz","fileCount":16,"unpackedSize":21525,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNW+RCRA9TVsSAnZWagAA+0MP/R9/0wIXXMHZpChgq4AX\nhxj2OnNhY8zZ9MoQgF5wOlxQQ2Uh1eF6V3RTzMsfZDt5vj7XmMXN/j4ZKE4E\nkeOAUhaUX7vAmc3LEIgT4LtpyyZTqKqYQtX7r19aNErH0sjRjKAqs7+VuXHH\nKSlYF96Y89ozp3f95LGOIJw0FYtQ1QvPkkX8COzBVQfNSzk95gBOaGYqsdqt\n46IpjlnT5ly5pZgzqdtlLtCgGoRpHAtauesTBTuPNxKQ9IDotUf2/tspm0Nn\nWDtXAfntC9gFN32kPGdIWP/1aNVK62XV0WQoam5wRZFqP+9TGUw2SDOK+775\ngxHocOZw/99xhUMbHxQzv8qOhmJn+GWt9Qc3vhGjQVOA+exKXJNodi2OIlQP\nliSZV6ne+NuScSZkJgBjxP8uCtvU8nAaQ3Kv02yjx7kbHQ5qo4YExFE0fNUS\nCsbon46URJ+2OeJYRBrJcYa/JJyw5iZ6F7r/Atvavi0bDd1exVljDniFFPCh\n7oM3Z2laL7DgryPVNAoQ/x2gFjRujv4JLWkfqVrfVQWtxKIxQ7a6T9A+2Sa6\nUBNq3ffLCrIVNMkpx4avGfLgAtjCD1BMME1X5WieLXv8qTH1Q85raVv9Dv5V\nz0PDf1h6PhN+WDTx9d02nWRiFWAH268pbc4IYk4cpiUJRcWNOsuZJnfspB1k\n2Wza\r\n=tqJ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbVI2cdXZ4WCdOXXMPbv8wj6xBsg3l37ii3WG+jltA7AiA+kfH59LHjDgaEV3jfVVzsmM45sUuGBHqdoNnPyLO6aA=="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_3.0.1_1580560273246_0.09962760256159875"},"_hasShrinkwrap":false},"3.1.0":{"name":"@airgram/web","version":"3.1.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^3.1.0","tdweb":"~1.6.6"},"gitHead":"348b6c9f354d477bfc77271f33421e07ecca27a5","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@3.1.0","_nodeVersion":"14.2.0","_npmVersion":"lerna/3.22.1/node@v14.2.0+x64 (darwin)","dist":{"integrity":"sha512-OQwWzZeOXkpJWeYIyiz/COZasg+5/JCU2zYrmp/cbazNAeYkaxf+hRgz+XDhUyBAyy0dRAbQoWxilRvnz8BySg==","shasum":"832dc600f9ff509141e010243fe255b9cd25d017","tarball":"https://registry.npmjs.org/@airgram/web/-/web-3.1.0.tgz","fileCount":16,"unpackedSize":22980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+rXkCRA9TVsSAnZWagAABKkQAIhcp1Pfzw1Zg2PLvj+2\n+yp1MP4UwjF/uAQKj8gVm18QuZvjoR4SEaMhYcoVmgjr4XwVLuslguoKm9/B\n+++UecF2rcvStQu+zydjNS+laO1b6xn238UJoe+xVKhMuJNEZIuV3ff6WDB6\nj7nbUu8UBdTsu2zlayNFzDLFbrgAug729MTHyyJuM05s+BziIbsDL2efH6iq\n/FyR/0z5itBRbLA72pO6iDJgkIZny3GaVMLGHdHpGtjipGeFstblyGSElDeq\nVLZsMnrFQav2q/EqTz0mD1koJCbad/GWenOnrDeOlFl7Sn3OfH0H+q8PSUZx\nwvDkn50ylN5jKQLW5c+yW1PFgCj06sp9p+59UW2LGE04unnJEu/+30zEO/zH\n99lD+FnLwWOfFalxbJsIzubJ8T7i7mipoBm2164RXCs2hLMtxynAtP5PqJ7g\nL+NoX2TqmXVEBST27nTjAMgvVQsatQLvJIQtqgt4dQx1YVzmYTBoHwWKJ9nY\np6iJEnptr++g1IFZVDxusCeq5wi6RgtXZIQEtxQRh9exucCDhxSgxU4YCjM7\ndG1JlEMLls+82kG3DCZwbWqp1TokbOCkVL5mhlnW7a/ORqAQrY63xF284DEc\njQZZ8oMZa+Jt8ce6r02YwCw832Q99Vz0um/Qe5mvfi/XVHebgYbMadRZZag7\nPvDu\r\n=OCQ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEYcDADsy45IQtlmq5py7vpUDDyUpR3qo7UypzMPk6HxAiEArDjSPPAQAtGaZpo7sjwB63q42QOQeL/gLw9USty4Y5I="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_3.1.0_1593488868191_0.3691356123055074"},"_hasShrinkwrap":false},"3.1.1":{"name":"@airgram/web","version":"3.1.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^3.1.1","tdweb":"~1.6.6"},"gitHead":"ed83c5d623dfb9d77fdba2cec4d0a8d21d7deef7","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@3.1.1","_nodeVersion":"14.2.0","_npmVersion":"lerna/3.22.1/node@v14.2.0+x64 (darwin)","dist":{"integrity":"sha512-KO3mjmU5WM0CeDKCZOFlLkL3skd0qjaYeFdd2H9wts83IdZHfD50sV2/x6j8IDDWJF90HXhXRRbsvp9E11qGSQ==","shasum":"200c5979610047dc97c0f655a775a919948bc447","tarball":"https://registry.npmjs.org/@airgram/web/-/web-3.1.1.tgz","fileCount":16,"unpackedSize":22973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA9N0CRA9TVsSAnZWagAAO4wQAKJeC628a37POoB/7hHH\ndukiV/pQ2LPmfXCc/Rk8zkMm3HNQoSVK5sM0k86EB6Spl+HEi+HfGMY3/wSw\nfO0Gz16G45P5WW0LkLXz2AGqYt0BoXegyjbJ/rQ3CC1LnlXtx0h2pTgGNkR9\neaoKgGJgPzSA536l9HAN0rnKgNvLTa0UfiGV0GzPn54FFSvet4MdorASh+aT\noF1yt61WrFVhSvuB8vEJvt1dPIbmKTDhI3KVpH2Bmb35E+rUsZpuHAYmnoy0\no3RPTAnxurjuAwz4nTKdq0p68IpOTMrWMGrVT7IrxbFR4zLNXk/T0/UXI9ym\nEWvywxVPYDdB+u9pkYqY+zZYXHnljTgMqQKJV5is6tnHYPDF/Mj5azoVCPFZ\nhRexVbPy4qN5h9O9OF9B9uYvQhbkckyR4RFXlEhIxgG4JXHKcUqvw1nKAsKx\nNmEc6o7RJ+YnOyDgokdljdvSfrQO9AO4/3Y1+OiMV5Sqlp3bgg4PyDkie49P\no8xMiU9mDNSLqkZyAe1tplCvf9K8U8HjlPJ2zS3ro67twlHKFsVsfIicIX3a\nZxSy9d+7QZ3+mbH75jZHuTZZvfe6C9lWCVNDnAKdjGb9qHGf45sKAPchNxPK\n+H9EjhZBrRmOFEON6oaQ/NWOejpvor7zUYECOK4MXneQk2pJLipXG2FWsGbw\nIXnW\r\n=fZtl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJo1TYv7UsQjBSZzMLwuohs0cY7cIzIsjK1V/xzeZZzAiEAz9A2fOvk73MRGNPL/YvWsBsV70WBL98tZa9S4ndkksk="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_3.1.1_1594086259590_0.7332812969868139"},"_hasShrinkwrap":false},"3.2.1":{"name":"@airgram/web","version":"3.2.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^3.2.1","tdweb":"~1.6.6"},"gitHead":"6ed345f4f53d7149d37a333c5a31f3cdf2e8ce59","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@3.2.1","_nodeVersion":"14.5.0","_npmVersion":"lerna/3.22.1/node@v14.5.0+x64 (darwin)","dist":{"integrity":"sha512-hIk6FUCurIC+GoviLUS4vwO5dM8+qYutY4Xcnv/Yn1LXHJy9lHeFT7VRN1WX5jIXs+MAdDAc02b4IN0dfOlaJA==","shasum":"61d5cbfeeace641ee9cbe5fa20aee019356887ce","tarball":"https://registry.npmjs.org/@airgram/web/-/web-3.2.1.tgz","fileCount":14,"unpackedSize":21797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfltq5CRA9TVsSAnZWagAA4VQP/0/2QvbuoLwgzqyMqIHD\ni0Y445FdWPV1YqBO0DW5GqX7IWL39QCXOCbHlUhh0akxu6YBl2pQPh7l9XZ9\nU1ZBq0A+NkxbnnyNUnOppeoLyQPVQowPCtvXJNEXmO1ck0OVGY/YPTpN45bh\ncna6wcv9Ddp4Uz7pbFQWQAs/oThhtGcf2ryvUGj2rS5BT/R7qW55mCINfgHV\nmGXuGihJIaHAcY3qfFiOMYLxsJ7DFQZ/pqaHmFniQAlGAp0Ki9yTQx0ZkmxZ\niGrM0YtkdjIpPeL0U5y2EWyjSNR+ZePIJKQNoWZWFxEThtzLcpblJZm25wqN\nDULhoBM+xdd85ThoPcofnYGNikBG4GnFFDvRFBLWV0udu+wLnf97S0ARkEno\nwb0Lh6TgykoqEtLd+nS8siKnHLSWdYnlEeheaRvzfWHeQYG5Sz1BzN7wwJp4\nfWP93BEiJEXUjLpaWN1FIzmCEwEfnFzOYKHNwPRUGJQGkhyKx4c0PkwsxPkv\ncL37nHrs+Q8l89tuyu7WnDTWWta22R00SfYfAUKxalPZoMp/S1ji0I+Z/+2E\n20c4ielHj1unZJ5roZaJjXC+0qDYKaG2bnoRTxIl10IvlZqSinQ5/7UzwXvf\nndjqJ3TutlUgl/wmiPWGS5V7uzieEz2ocAofWGbIEo1vVjJ3j7TAnYA1dliY\nhOb/\r\n=KmSM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa2ru06TrXao+3EH+N8b+V1Td8V06Lrds79ZSijyhd8wIgbTC+1h3dASvH8H+6dSOnTOADRkA951IETUCKhhCZzY4="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_3.2.1_1603721913530_0.3281520829390778"},"_hasShrinkwrap":false},"3.2.2":{"name":"@airgram/web","version":"3.2.2","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^3.2.1","tdweb":"~1.6.9"},"gitHead":"73b76be4434e30bc348a5854977390db65c01613","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@3.2.2","_nodeVersion":"14.5.0","_npmVersion":"lerna/3.22.1/node@v14.5.0+x64 (darwin)","dist":{"integrity":"sha512-7sVroOoM7nNFwLDf2ylEZxLNuN/MzJnk6hdMRxw7FQDCxi7B6PyrBjjBPUBNw4jzVqfjuWl0v2uWggQxnwVo6Q==","shasum":"dac68d9d2f96bb5abb4dbaf4bb6a750112a81358","tarball":"https://registry.npmjs.org/@airgram/web/-/web-3.2.2.tgz","fileCount":14,"unpackedSize":21797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmTx7CRA9TVsSAnZWagAAe6AP/0sgyKHzM6puwdMOhmZ0\n5gXBnOVrjV1HI3/mNcX9NnxMObQf4SQuXt3h/L2KsSg+eIftz2ol91v3gYpf\n3jLwY9Adc8d1xR9qsB1iMYXe8bfv+YQqfjB7uOXpQoetk0riUuY33h+6NBMM\nZEZ42po+2QM/H6Jhn/S+c2Fr6LBJQK7bZrl9dmtVc1GLtrw+DXwxCYPe05J5\nlgo4GdTzLqQ/J392NJRAYCZl4Yqkfzoe7Y0sdfDvP11Kj2vi/b45+NYJcRas\naPgcgRw1P/FZlwwqCo9Qwaq+YLcI7IE7B0PNeTfBuvmZ/j2EC2ZiGjfc6l9u\nEyAKw1fdoiUioGbZT6tt22S6sZCdSMJaTVwxS4wP9UibYz4CUA/J+S/GKZ4p\neuik6Z74t5Nw079r5EQp+Dyy7AhCrINzd5idP8nH/V4e0Oltknnmfx/TftMr\nXJk8Md0pUdcN/QACqbR03hXHma5reagCdGypt7zn3RIqcB/CcDv/Zl3yArUP\naH4+mkyif4yZMgwHJy830/BcZj7QFV1Qf40p06vvv+8B6JlVHUEB/L58GOVm\nXqaYTCxHqcUkAwKWrPMz9kXsPW8/tAuVqot9WZ2+0F3Pm4nIcjR8YXARHefu\nHTyRpKg4ML1qUf6qhvd2qcHFraO8ab2CH5BpTkknFAu1JvSbMwK2Peg2fk3R\nkJAJ\r\n=XlwW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGB7PwwLFL5PgyWf/J2P4T0a6UXqiZuLLH1d4NUWQ/TqAiEArFRVmGOeYCAkIuPvyWpKr2p7rNS/tb8CffgoJ6Ii2UE="}]},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_3.2.2_1603878011096_0.9439700248812501"},"_hasShrinkwrap":false},"3.3.0":{"name":"@airgram/web","version":"3.3.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^3.3.0","tdweb":"~1.6.9"},"gitHead":"6ed74208633d1e68984944801994dce839a7c009","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@3.3.0","_nodeVersion":"14.5.0","_npmVersion":"lerna/3.22.1/node@v14.5.0+x64 (darwin)","dist":{"integrity":"sha512-r/xDKcDuXlPeoNggjqgaAWGYkqZ96pddsZSZavwdsW+dQwMRKS9YQTXR0h7H6KOTDCBGm5FobZHNgDRWVnschw==","shasum":"b6906398e9b143cd71ee050bb3660bff30ccee71","tarball":"https://registry.npmjs.org/@airgram/web/-/web-3.3.0.tgz","fileCount":14,"unpackedSize":21797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfuG5xCRA9TVsSAnZWagAATOoP/0M8WVA8AWpzgyaNm5U4\nSqUX87Rt5tIFfEr7wWxgk8IQmQ8+9Z1TyE97tl/ZwS0Crhk1AVw7SJqbkX9u\nrsBiotAYDpJRHt+tiY1kZNd2Yfm3Fh/dbpzPOl16nwv4C7uWnNJkjKcX5lg6\n745aLlvwgkNuKCtb8y3ZfBu7ycUwrzmH5lY+Y18kJuqrBJSACKqZwoAJhAr9\netDJwt3yHmIuZ9txmol9MeM7p6ZGvDA7r4aVBE84tqWbcUs3u+gAugDzXb6L\nU39jEMED6gca2aYBPc3wQ1LB8lojJgPTgXfyjC0cg0WQbTGXvjm5reCRJhaP\nmVsNHcAQlSemywErCgQ1t6h1u2VpHRbLWUVD+6ZSra2j7hza3IelwiH1LKdB\ndoYmCdbHiVYPRrdK6Z7rSF6dGvuoXpjLrPqxfMKwhVU287FCL+jvkaFWqrWM\nJfpmQzgR4M19/OEvJijuLIe1uZy+KtUdzIKO7RgWcaJqPRKzs6ytRcjlnXPp\nnxE6Zf7D7/ZYP6OHp+X/nx/bj916u6goy/CTljgEUTo3DgkwqUcGHJYHzbWa\ncx6jus5OBLoTQ5kV6RbbCa405lIOTiC7Y3bbP2Ly+uCX4CnxJ7DlzWHlUZ0u\nzJSiiUZzjt4QDqpIcf9IkNVE8JjGJ82I7gK618c7OKQ+ybAfk/T4HOoOZoQj\nJ5BU\r\n=CdXd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuoPFmL1Jjuj8vcSCofxQUa5poITPS0/aQP7F/Pl/VrQIgNtlWGGil9RUj6zCOUUv4rYUMKiwLLioEkBMVj75cCyc="}]},"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_3.3.0_1605922416511_0.36284686933320964"},"_hasShrinkwrap":false},"4.0.0":{"name":"@airgram/web","version":"4.0.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^4.0.0","tdweb":"~1.6.10"},"gitHead":"372c569c04de8ce68d0a29ae471c1110eb2cf681","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@4.0.0","_nodeVersion":"14.5.0","_npmVersion":"lerna/3.22.1/node@v14.5.0+x64 (darwin)","dist":{"integrity":"sha512-UJ3pvOuy9bL22WDadzIAuXcjsXlvgJvuyR/ANZccnXECf+2PUtgRu3IT75Eb3LtwHHObFnkliRex8WqcKklYyQ==","shasum":"f63dee1bc833c507e95b432301f83907c1cd3bf5","tarball":"https://registry.npmjs.org/@airgram/web/-/web-4.0.0.tgz","fileCount":14,"unpackedSize":21798,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6Rn3CRA9TVsSAnZWagAAfa8P/0HCJVW61uwMECaFKgun\nn2YKRqXr7oUM5p6S5i0YMsUSyAJFdgKfPx4f48ky2NTZxkxtCrdoUVeVZwET\nmZA68w4GJMjvjQtvsi9UVUlBsYnOIqHD6XiWYaxNqKRgf844EUkgcthjei5g\n6ZcLsRLTmDoGG8vd+hiLgW2q7FVWM9+BlKyilWIV5OLEkPEdcql3Ep18CrUd\nGgUnAqMPPpcgDpwXKltKQN2o/gFzssC1pBmZN7bFvUcicyjfnGxUFJ4czYUX\nwVl3Uu0bbr/9JQ5IoflnotCJY8gWu0AZDLa008mylFymqGg7LGw+/Rwff9iw\niBFPrRrQIts9mOb/f1X07uPfsxcdLTChYD9dvcf/u7k1kJ1wt43BneNOelkE\naheUYmiX7p6SbSLp7OLSxSZ6jNYDE3upvuBriaWlkG7aYO70j3qB6flvQ1jN\np0/0qyS/KJToWjE7oo4Z/KhpJT8pcM+mXkh8emOeegEHsZAyuEZ6pVFFTKPh\nrISFnp+Z6PwWOhGuKhXkHSQ7TUp/9JBMloWNgCFOsRsuH/wsT7/z4tfOCbaJ\nUDEB+hHN4Vy2UaJJDOH/1qn+uxtSLwAlfjJI6RZrdmsE6zSdSGhBqzt4Cmyi\nTBDoJ0bhURcqBUFGKdy7jKnK89ZAyR/p51q7dYZCvOgdPMnn6Y7H3D0VTUS9\nCod2\r\n=HyI6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7vDEl52j7PJTB8XtPNckrWzkE4jk1UR+8lPsN39RNgAiB1SNAbn5KCz0rg35YSTwp3u4bSIeOahHUpfeRlWKrh5A=="}]},"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_4.0.0_1609112054734_0.5728648893438271"},"_hasShrinkwrap":false},"4.0.1":{"name":"@airgram/web","version":"4.0.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^4.0.0","tdweb":"~1.6.10"},"gitHead":"129a59a3b968c87933bb07430756c54ee7b258c1","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@4.0.1","_nodeVersion":"14.5.0","_npmVersion":"lerna/3.22.1/node@v14.5.0+x64 (darwin)","dist":{"integrity":"sha512-QFHuL4gGoJcfUjW1XGQGendlVoYchggJXLPAo6wzPsiJtkQ5xYMOK1AWcJQZfec4sOBK8BVhpIv4LGqvJrHnlw==","shasum":"5c4eb67aa783a23a1eecb0d54abda449a5e82c3a","tarball":"https://registry.npmjs.org/@airgram/web/-/web-4.0.1.tgz","fileCount":14,"unpackedSize":21894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8SomCRA9TVsSAnZWagAAyIcP+wRoJTX9tRGjaZDZv2aE\n2AvwezXPjxgX+N77P9K5OlUzVAoRHZkWS4+H7EgX60FHovp3pChNC24Zw5zU\nZoeypv31EvTVy7NlvW5mFmD9nT/ILuKWaXbckThFwPulcTmiSt9tnpzFrVSd\nF/hTlWZFRl2Rxylgks0UxoVLRH25PdjYvO1AaQYRI7qtW7SqbGsF3FKafT8t\np3FhREmq1IRh+mc4/u5j58HTZsOlcS/NZ0SGVWWr1K/1BD3aHI9uTQzrDRWX\npholDI24IGPsZ++p3JmYvcnI/9LWxsKvq0Y+iJuhyS2nHVI6LL7EHV9YTB4m\nr+LR/1c3cCOjbqQOdjXWwg0GVBvO6uaGaMpCoACVYiIkAaX+Ec90PgSOTil7\nNZf6Khpmj5Sil3l6YWWG2fnzZW/QOlB+YhT0k48elk77nHHe073K2LF2/tz0\nYHpsWAEAlv8PzCGutil77KIgtQgS3PQb7EN3qzerhmaXHHCjmct5jZ4uElzx\nz1AgczyVTf4bK5LfnNFQnLYwRSHSht0ItMKPRVscVkBRflfJ0DUogjzte13+\nskWQurE/lfiwfhWS8d6BhFfnRG5O1h4401+HUPQIkZ/n7mk3sLPmjsf5m/gz\nP/5kNt5yUef/uz3hGZeKW935c7zFWgGiL0e213a8VWfL1PRRumrgVMyZvDuY\nJDY8\r\n=yaop\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCko9ZKLwiVMAFvdhIZybbS34xl5TAiXfIWyhSe0htMbAIgO3/7v4kFHHROmJdD4ziwyYfP4EwCc3wNqLoq1nL03gQ="}]},"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_4.0.1_1609640485912_0.07566910981023223"},"_hasShrinkwrap":false},"4.1.0":{"name":"@airgram/web","version":"4.1.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^4.1.0","tdweb":"~1.7.2"},"gitHead":"f40996495f3f8ff7988fa9f45d439ae890fd24d5","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@4.1.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-SRgkn5pDwpsX9qxDnr57rulFI/GpkkCflRGeS8xn7erJBtkmHBm11SfU4cnCms9F3nWxSCoK+0I+/dWUX6ijXQ==","shasum":"456921537b0826a3390e2c0ef52da9927ddc6f5d","tarball":"https://registry.npmjs.org/@airgram/web/-/web-4.1.0.tgz","fileCount":14,"unpackedSize":21893,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOSOVf58pgCFlEqJNBO5qeQd9ICsUK9ym+vWI5oFr/lQIgTTXkX3eXGIKTfAp8u9v7jC8I+7iHShVk/bgknB1JS5U="}]},"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_4.1.0_1633458427872_0.8275247477389933"},"_hasShrinkwrap":false},"5.0.0":{"name":"@airgram/web","version":"5.0.0","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^5.0.0","tdweb":"~1.8.0"},"gitHead":"393b341e1f1e30eeb09d2e635c0c309b19239278","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@5.0.0","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-dgtcLWVe+b7gIjSAm1aWFg2rKemIBqocIFB/QpijphLHMC3dlPtlf5GNfTJnKokCgzAPdZ2fTtcVOKg/PH0vvg==","shasum":"df9c994c352741516711bb235a68a703a6d64df5","tarball":"https://registry.npmjs.org/@airgram/web/-/web-5.0.0.tgz","fileCount":14,"unpackedSize":21893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1KPzCRA9TVsSAnZWagAA9OcP+weHvNYh94VN6k1U3xpa\nO0qE2lfCVq88mJX3mcEqTu+8wRj8LuDbJfqKVaDmRsZqMQB1lf09BwDYPflR\nzQrm80NdgL2Ddy7lvesBZt8+QDwSvM8pekEl9/ZREM0+bKAy7Tw4o3f8OI2V\nP0o0fPwLCAhWxUh+HYPdEr+UBHd4HEAX5N82idGDGYzZ/o/O4MYlbzeWSrq1\nr9AFT10yq/NN+d4M9q54FbUFt2J5aBSLaPVEi3JBlPUGXi2lls3mkc8G5q/P\na5uv4MyMv3exULYakFhHV9a6oKUTBfMscD/XwNgHVURbyX3dC8c4dU/zlm0P\n23rwxdclBQcZWEYLodnVmO0HRmpW2zPp8zSsEKRg0JO7GKLNWgOTxv2FMWaW\nmv8H/5z8HpayJtXlWhSi/JBQASi1H4sBTeLPlKcpW6W7fNfqZBlkzFWa0SKR\nw8+V/DfKD9guWJd8hcprqQj+fX03vYa5XFO2sYExQusVDD0KdTYDOdltm1hH\nrCIBA2Xw5NXe25hWpv+GMrwFisj1MJ3R+QbMWNgRnL03ny6gIok0D3Qzd0v9\n84LARRS+iqM5uXO4evK3LmVKbH4jg8KA7/9nGDgx2QFO3TZcd7aVgpBxt63H\nRfBaktqnYVilgGQFmDNihHengZ8lgQENdu2U7oY++MNqGkKDUBv5kKaS+l5N\nqd6b\r\n=NBsY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdP48/sp7pWnKv1qwMPx/145s1kU2CMXbNKwmPRI2X9AiEAgdEO/HQE1Wg4zi42c1zDX+zWUvRz5pCBuCD2na8xl4I="}]},"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_5.0.0_1641325554859_0.5280936265989431"},"_hasShrinkwrap":false},"5.1.1":{"name":"@airgram/web","version":"5.1.1","private":false,"main":"index.js","types":"index.d.ts","keywords":["telegram","tdweb","airgram"],"publishConfig":{"access":"public"},"dependencies":{"@airgram/core":"^5.1.1","tdweb":"~1.8.0"},"gitHead":"1309e4a748d802a06637a5cfbf898d5c3c29c25f","sideEffects":false,"author":{"name":"Alexander Krisko"},"homepage":"https://airgram.io","repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"readme":"# Airgram for `tdweb`\n\nUse [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.\n\n## Features\n\n- Strictly typed;\n- Documentation out of the box;\n- Supports models;\n- Built on middleware;\n\nAll TDLib classes and methods are described and have suitable wrappers in Airgram. There are only two differences:\n- All parameter names are represent in \"camelCase\".\n- Parameter `@type` renamed to `_`.\n\n## Documentation\n- [Installation](#installation) \n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Api reference](#api-reference)\n---\nCheck out `airgram` documentation:\n- [Middleware](https://github.com/airgram/airgram#middleware)\n- [Getting updates](https://github.com/airgram/airgram#getting-updates)\n---\nTDLib API reference:\n- [TDLib methods](https://github.com/airgram/airgram-api/tree/master/docs/td-methods.md)\n- [TDLib input types](https://github.com/airgram/airgram-api/tree/master/docs/td-inputs.md)\n- [TDLib output types](https://github.com/airgram/airgram-api/tree/master/docs/td-outputs.md)\n\n## Installation\n```bash\nnpm install tdweb-airgram\n```\n\n## Usage\n- [Webpack example](https://github.com/airgram/tdweb-airgram/tree/master/examples/webpack-config)\n- [Rollup example](https://github.com/airgram/tdweb-airgram/tree/master/examples/rollup-example)\n\n## Configuration\n\nThis section describes the options you can pass to `Airgram` constructor:\n\n```typescript\nimport { Airgram } from 'tdweb-airgram'\n\nconst airgram = new Airgram({\n  // options\n})\n```\n\n### TDLib options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `useTestDc` | `boolean` | If set to true, the Telegram test environment will be used instead of the production  environment |\n| `databaseDirectory` | `string` | The path to the directory for the persistent database |\n| `filesDirectory` | `string` | The path to the directory for storing files |\n| `useFileDatabase` | `boolean` | If set to true, information about downloaded and uploaded files will be saved between application restarts |\n| `useChatInfoDatabase` | `boolean` | If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies `useFileDatabase` |\n| `useMessageDatabase` | `boolean` | If set to true, the library will maintain a cache of chats and messages. Implies `useChatInfoDatabase` |\n| `useSecretChats` | `boolean` | If set to true, support for secret chats will be enabled |\n| `apiId` | `number` | Application identifier for Telegram API access, which can be obtained at https://my.telegram.org |\n| `apiHash` | `string` | Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org |\n| `systemLanguageCode` | `string` | IETF language tag of the user's operating system language |\n| `deviceModel` | `string` | Model of the device the application is being run on |\n| `systemVersion` | `string` | Version of the operating system the application is being run on |\n| `applicationVersion` | `string` | Application version |\n| `enableStorageOptimizer` | `boolean` | If set to true, old files will automatically be deleted |\n| `ignoreFileNames` | `boolean` | If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name |\n| `databaseEncryptionKey` | `string` | Encryption key |\n\n### `tdweb` options:\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `instanceName` | `string` | Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name. |\n| `isBackground` | `boolean` | Pass true, if the instance is opened from the background. Default: `false` |\n| `jsLogVerbosityLevel` | `string` | The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug'). Default: `info` |\n| `logVerbosityLevel` | `number` | The initial verbosity level for the TDLib internal logging (0-1023). Default: 2 |\n| `useDatabase` | `boolean` | Pass false to use TDLib without database and secret chats. It will significantly improve loading time, but some functionality will be unavailable. Default: `true` |\n| `readOnly` | `boolean` | For debug only. Pass true to open TDLib database in read-only mode. Default: `false` |\n| `mode` | `string` | For debug only. The type of the TDLib build to use. 'asmjs' for asm.js and 'wasm' for WebAssembly. If mode == 'auto' WebAbassembly will be used if supported by browser, asm.js otherwise. Default: `auto` |\n\n\n### Other options\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `models` | Function | Contains function, which converts plain JSON objects to models. [Details](https://github.com/airgram/airgram-use-models). |\n| `contextFactory` | Function | Function that returns custom middleware context. [Details](#ctx). |\n\n## API reference\n\nThis section describes public API of an `Airgram` instance:\n\n\n| Key                | Type                     | Note                                                        |\n| ------------------ | ------------------------ | ----------------------------------------------------------- |\n| `api` | Object | Contains wrappers for all [TDLib methods](https://github.com/airgram/airgram-api/blob/master/docs/td-methods.md). |\n| `config` | Object | Airgram configuration. Readonly. |\n| `catch` | `(handler) => void` | Overrides default error handler. Argument `handler` takes a function: `(error: Error, ctx?: Record<string, any>) => void`  |\n\n## License\n\nThe source code is licensed under GPL v3. License is available [here](/LICENSE).\n","readmeFilename":"README.md","description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","bugs":{"url":"https://github.com/airgram/airgram/issues"},"_id":"@airgram/web@5.1.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (darwin)","dist":{"integrity":"sha512-5Qb3uv/TFzlxo8fQ6C7MfVZtx84fnRAyB2dgkUSY3JqguzBvpleWKgAvaQby80owoP7tdtSPAsZNzSyH9UgxrQ==","shasum":"3c3fce7dc3616c46d53dc7c65929d30d258a341f","tarball":"https://registry.npmjs.org/@airgram/web/-/web-5.1.1.tgz","fileCount":14,"unpackedSize":21893,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMWosxBGSzo9CTURn/mG/V4HrDv1G3NY6S/yd8KzuqXwIhANzd65K54qNOERqPqMTrA08rDSP4DEjSls01zdayqJVU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVbaTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7nQ//daSmTRUmceZGLNlZcy+cDkNzed4wzomREtMe722WL9OBF84d\r\nXOcBucJkOOJdpnaAmId06b7BirCe0e6nThAfWDGufotCikMgaHj/owvWMhKh\r\nULpxAuMvKAiOQMbT6oNFz2jh9V//LwjRzxhwmwGNELnOCCWi+tH//GekEjQJ\r\nayCIEtJsfIQCLP1WpVue/Dto7/TI6Tu6Llzjl43FHwvWIUrdQCTkhbfRraBU\r\nvU3qANBzGjsxsHI4GP3LzLGFGsgTpelYTPEaqdc+8dhXsXG9TnegVyoskvb3\r\n/0N7suiXBNmF4DAnUAQSFgAQI916VIVdoQkRHp9dX8mygDOM/s4UkWQmh1hH\r\n7POySR5nTv1lz/0vXVNZp5j+sndrQTPn9FJW+L0Wp9pUbN9XrHeD3sGLfKS/\r\no2OTtAWjGBX0n65tHpew4o96pGZfKRP05x1MzRXkpTS3rnqibLnoZxgQEgAz\r\nClx7k1JBzTHI+/jc3cAe5GM2wKvpyILu+cfh8J7/FIEL1epBgSFOpjwT85F/\r\n3H/9+VnBm2Zj9ZI0sMkGt7xu/rgujiZpazYONiD3nP22tFoZusJA6mp1yp5q\r\nwuXV5cBGMXlEE++sAFuMQfLqP55PkxYJ/LCSC1KalErWmGuUh9Q6Gysu/nE+\r\nWjWEQHyXKHixq4/TuqKMpJxQDDpOZs8fVdo=\r\n=9ora\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"esindger","email":"esindger@gmail.com"},"directories":{},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web_5.1.1_1649784467156_0.1282552477994363"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-08T15:55:46.986Z","2.0.0-next.2":"2019-09-08T15:55:47.335Z","modified":"2022-04-12T17:27:47.419Z","2.0.0":"2019-09-13T07:58:34.424Z","2.0.1":"2019-09-13T12:30:15.438Z","2.1.0-next.0":"2019-09-21T03:37:00.848Z","2.1.0-next.1":"2019-09-21T07:24:36.116Z","2.1.0":"2019-09-23T00:11:54.340Z","2.1.1":"2019-11-07T12:50:42.738Z","2.3.0-next.9":"2019-11-17T18:34:37.677Z","2.3.0":"2019-11-27T08:36:59.306Z","2.3.0-next.11":"2019-12-14T07:53:32.719Z","2.3.0-next.13":"2019-12-14T08:21:26.184Z","2.3.0-next.15":"2020-01-22T13:56:10.024Z","2.3.0-next.16":"2020-02-01T11:13:34.529Z","3.0.0":"2020-02-01T11:27:19.979Z","3.0.1":"2020-02-01T12:31:13.467Z","3.1.0":"2020-06-30T03:47:48.348Z","3.1.1":"2020-07-07T01:44:19.842Z","3.2.1":"2020-10-26T14:18:33.673Z","3.2.2":"2020-10-28T09:40:11.232Z","3.3.0":"2020-11-21T01:33:36.820Z","4.0.0":"2020-12-27T23:34:14.853Z","4.0.1":"2021-01-03T02:21:26.060Z","4.1.0":"2021-10-05T18:27:08.026Z","5.0.0":"2022-01-04T19:45:55.007Z","5.1.1":"2022-04-12T17:27:47.327Z"},"maintainers":[{"name":"esindger","email":"esindger@gmail.com"}],"description":"Use [`tdweb`](https://github.com/tdlib/td/tree/master/example/web/tdweb) on steroids.","homepage":"https://airgram.io","keywords":["telegram","tdweb","airgram"],"repository":{"type":"git","url":"git+https://github.com/airgram/airgram.git"},"author":{"name":"Alexander Krisko"},"bugs":{"url":"https://github.com/airgram/airgram/issues"},"readme":"","readmeFilename":""}