Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kybernetwork/telegram-query-bot
- Owner: KyberNetwork
- License: mit
- Created: 2019-07-23T10:22:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:02:48.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T21:01:10.924Z (almost 2 years ago)
- Language: JavaScript
- Size: 999 KB
- Stars: 7
- Watchers: 3
- Forks: 32
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```