telegram-tt/README.md

34 lines
696 B
Markdown
Raw Normal View History

2021-04-16 16:51:22 +02:00
# Telegram Web Z
2021-04-09 12:29:59 +02:00
## Local setup
```sh
mv .env.example .env
npm i
```
Obtain API ID and API hash on [my.telegram.org](https://my.telegram.org) and populate the `.env` file.
## Dev mode
```sh
npm run dev
```
### Invoking API from console
Start your dev server and locate GramJS worker in console context.
All constructors and functions available in global `GramJs` variable.
Run `npm run gramjs:tl full` to get access to all available Telegram requests.
Example usage:
``` javascript
await invoke(new GramJs.help.GetAppConfig())
```
## Bug reports and Suggestions
2021-04-16 16:51:22 +02:00
If you find an issue with this app, let Telegram know using the [Suggestions Platform](https://bugs.telegram.org/c/4002).