mtcute/packages/node/README.md

20 lines
485 B
Markdown
Raw Normal View History

# @mtcute/node
2023-11-01 14:05:45 +03:00
📖 [API Reference](https://ref.mtcute.dev/modules/_mtcute_node.html)
All-in-one package for NodeJS. Includes support for native crypto addon
(must be installed separately, `@mtcute/crypto-node`), terminal I/O via
`readline` and comes with pre-installed HTML and Markdown parsers.
## Usage
```typescript
import { NodeTelegramClient } from '@mtcute/node'
const tg = new NodeTelegramClient({
apiId: 12345,
apiHash: 'abcdef',
2023-11-01 14:05:45 +03:00
storage: 'my-account'
})
```