File size: 885 Bytes
13d8dcd
a87fe57
 
 
 
 
13d8dcd
 
 
 
a87fe57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: Telegram Bot on Hugging Face
emoji: 🤖
colorFrom: blue
colorTo: indigo
sdk: docker
app_file: app.py
pinned: false
---

# 🤖 Telegram Bot (Hosted on Hugging Face Spaces)

This is a simple Telegram bot powered by **Flask** and hosted on **Hugging Face Spaces**. It listens to incoming messages via a webhook and replies with an echo.

---

## 🔧 How to Use This Bot

1. **Send a message** to the Telegram bot.
2. It will reply:  
   > You said: `<your message>`

---

## 🛠️ How to Set It Up

### 1. Get Your Bot Token

Create a bot using [@BotFather](https://t.me/BotFather) on Telegram and get the token.

---

### 2. Add Secrets in Space Settings

Go to **Settings > Secrets** in this Space and add:

| Name                | Value               |
|---------------------|---------------------|
| `TELEGRAM_BOT_TOKEN` | Your bot token here |

---

### 3. Set the W