Spaces:
Build error
Build error
Create README.md
Browse files
README.md
CHANGED
@@ -1,13 +1,43 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
-
sdk:
|
7 |
-
sdk_version: 5.32.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
license: intel-research
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Telegram Bot on Hugging Face
|
3 |
+
emoji: 🤖
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: docker
|
|
|
7 |
app_file: app.py
|
8 |
pinned: false
|
|
|
9 |
---
|
10 |
|
11 |
+
# 🤖 Telegram Bot (Hosted on Hugging Face Spaces)
|
12 |
+
|
13 |
+
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.
|
14 |
+
|
15 |
+
---
|
16 |
+
|
17 |
+
## 🔧 How to Use This Bot
|
18 |
+
|
19 |
+
1. **Send a message** to the Telegram bot.
|
20 |
+
2. It will reply:
|
21 |
+
> You said: `<your message>`
|
22 |
+
|
23 |
+
---
|
24 |
+
|
25 |
+
## 🛠️ How to Set It Up
|
26 |
+
|
27 |
+
### 1. Get Your Bot Token
|
28 |
+
|
29 |
+
Create a bot using [@BotFather](https://t.me/BotFather) on Telegram and get the token.
|
30 |
+
|
31 |
+
---
|
32 |
+
|
33 |
+
### 2. Add Secrets in Space Settings
|
34 |
+
|
35 |
+
Go to **Settings > Secrets** in this Space and add:
|
36 |
+
|
37 |
+
| Name | Value |
|
38 |
+
|---------------------|---------------------|
|
39 |
+
| `TELEGRAM_BOT_TOKEN` | Your bot token here |
|
40 |
+
|
41 |
+
---
|
42 |
+
|
43 |
+
### 3. Set the W
|