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

https://github.com/buildwithcode888/simple-tg-bot


https://github.com/buildwithcode888/simple-tg-bot

Last synced: 8 months ago
JSON representation

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.