Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 1.93 KB

README.md

File metadata and controls

76 lines (46 loc) · 1.93 KB

Token Nova Documentation

Introduction

Token Nova is a Telegram bot designed to provide real-time cryptocurrency prices. It utilizes the CoinMarketCap API to fetch accurate pricing data.


Getting Started

To run Token Nova bot on your machine, follow these steps:

  1. Clone the Token Nova repository to your local machine:

    git clone https://github.com/EliotCodes/TokenNova.git
  2. Install the necessary dependencies:

    cd TokenNova
    npm install
  3. Create a bot on Telegram using BotFather and obtain your bot token.

  4. Set the bot token in the .env.example file.

  5. Obtain your CoinMarketCap API key from here.

  6. Set the API key in the .env.example file.

  7. Rename the .env.example file to .env.

  8. Start the bot:

    node index.js

Configuration

You can configure the behavior of the bot using the config.js file located in the src folder.

Example config.js file:

module.exports = {
    adminUsername: "EliotCodes", 
    BOT_TOKEN: "",
    API_KEY: "",
    botMode: "polling", 
    webhookDomain: "https://yourdomain.com",
    webhookPort: 3000
}

The botMode can be either "polling" or "webhook," with "webhook" recommended for production environments.

For webhook mode, set your webhookDomain to your bot's hosting domain and webhookPort to the desired port.


Usage

After setting up the bot, access the bot you created with BotFather on Telegram and send the command /start to view available commands and start using Token Nova to get real-time cryptocurrency prices.


Demo

You can test the functionality of Token Nova by accessing the Token Nova Bot on Telegram. Send the /start command to begin using the bot and explore its features for retrieving cryptocurrency prices in real-time.