Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kybernetwork/telegram-query-bot

Telegram bot for querying data from Kyber
https://github.com/kybernetwork/telegram-query-bot

Last synced: about 1 month ago
JSON representation

Telegram bot for querying data from Kyber

Awesome Lists containing this project

README

        

# telegram-query-bot

Telegram bot automating Kyber queries. Uses the [Telegraf](https://github.com/telegraf/telegraf) Telegram bot framework.

Bots are special [Telegram](https://telegram.org) accounts designed to handle messages automatically.
Users can interact with bots by sending them command messages in private or group chats.

### Installation

```
$ npm install
```

### Setup

1) Create an .env file in the root directory, containing your Infura and / or Alchemy API keys and Telegram bot token. Note: Omit the bot prefix in the Telegram token.

e.g.
```
ALCHEMY_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
INFURA_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TELEGRAM_TOKEN=xxxxxxxxx:xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxx
```

### Running

To run in development mode (restarts at every file change)
```
npm run dev
```

To run in production mode
```
npm run start
```