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
- Host: GitHub
- URL: https://github.com/saltx/telegram-bot-template
- Owner: SALTx
- License: mit
- Created: 2023-08-03T01:52:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T04:37:16.000Z (over 2 years ago)
- Last Synced: 2025-06-19T04:07:37.913Z (about 1 year ago)
- Topics: nodejs, telegram, telegram-bot, telegram-bot-api
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.