tg-cli-node
Node.js wrapper for telegram-cli
How to use
Install package from npm:
npm install tg-cli-node
Create config.js
with:
const path = ; moduleexports = telegram_cli_path: path //path to tg-cli (see https://github.com/vysheng/tg) telegram_cli_socket_path: path // path for socket file server_publickey_path: path // path to server key (traditionally, in %tg_cli_path%/tg-server.pub)
Open your app script and use this example:
const TelegramAPI = ;const config = ; const Client = config; Client;