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

https://github.com/saltx/telegram-bot-template

starting files for creating your own telegram bot using nodejs
https://github.com/saltx/telegram-bot-template

nodejs telegram telegram-bot telegram-bot-api

Last synced: about 1 year ago
JSON representation

starting files for creating your own telegram bot using nodejs

Awesome Lists containing this project

README

          

# telegram bot template

Starting files for creating your own telegram bot using nodejs

## Getting started

### 1. Clone the repository

```bash
git clone https://github.com/SALTx/telegram-bot-template
```

### 2. Install dependencies

```bash
npm install
```

### 3. Create a new bot using [BotFather](https://t.me/botfather) and get the token

### 4. Insert the token in the `.env` file

```env
TOKEN=your_token
```

### 5. Run the bot

```bash
npm run start
```

### 6. After making sure it works, add your own commands in the `commands.js` file

### 7. Enjoy

## Default commands

- `/start` - Start the bot
- `/help` - Show list of commands and help message

## Author

- [saahil](https://github.com/SALTx)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.