Skip to content

rc4lifting/rc4-telegram-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Node.js (version 12.x or later)
  • You have a Telegram account and have created a bot using BotFather

Setting up the project

To set up the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/your-repo-name.git
    cd your-repo-name
    
  2. Install the dependencies:

    npm install
    
  3. Create a .env file in the root directory and add your bot token:

    BOT_TOKEN=your_bot_token_here
    

Running the bot

To run the bot in development mode:

npm run dev

This will start the bot using nodemon, which will automatically restart the bot when you make changes to the code.

To build the production version of your bot:

npm run build

This will compile your TypeScript code into JavaScript in the dist directory.

To start the bot in production mode:

npm start

Project Structure

  • src/bot.ts: The main file containing the bot logic
  • package.json: Project configuration and dependencies
  • tsconfig.json: TypeScript configuration
  • .env: Environment variables (make sure to keep this file private)
  • .gitignore: Specifies which files Git should ignore

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published