https://github.com/buildwithcode888/simple-tg-bot
https://github.com/buildwithcode888/simple-tg-bot
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/buildwithcode888/simple-tg-bot
- Owner: buildwithcode888
- License: mit
- Created: 2025-01-28T08:10:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T09:40:12.000Z (about 1 year ago)
- Last Synced: 2025-06-26T19:47:28.748Z (12 months ago)
- Language: JavaScript
- 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 with [Telegraf.js](https://www.npmjs.com/package/telegraf)
🚀 A simple yet powerful Telegram bot built using **Telegraf.js** – a modern framework for building bots with ease.
---
## ✨ Features
✅ Easy-to-use JavaScript-based Telegram bot
✅ Uses **Telegraf.js** for seamless interaction with Telegram API
✅ Simple setup and deployment
✅ Lightweight and efficient
---
## 🔧 Installation
First, ensure you have [Node.js](https://nodejs.org/) installed.
### **1️⃣ Install Dependencies**
You can install **Telegraf.js** using your preferred package manager:
```sh
# Using npm
npm install telegraf
# Using yarn
yarn add telegraf
# Using pnpm
pnpm add telegraf
```
## 🚀 Running the Bot
### 2️⃣ Start the Bot
Run the bot with:
```sh
node bot.js
```
Or, if you have nodemon installed for auto-restarting:
```sh
nodemon bot.js
```
💡 Hit `CTRL+C` to stop the bot.