LeeThanh commited on
Commit
174012d
1 Parent(s): 60815f3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -1
README.md CHANGED
@@ -7,4 +7,26 @@ sdk: docker
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  pinned: false
8
  ---
9
 
10
+ # Telegram AI Chat Bot
11
+ This project is a Telegram bot that uses the Cloudflare Workers AI model '@cf/meta/llama-2-7b-chat-int8' to generate AI responses to user messages. The bot listens for messages, and when it receives a message, it sends a request to the Cloudflare Workers AI API with the message text as a prompt. The AI model generates a response, which is then sent back to the user.
12
+
13
+ # Requirements
14
+ - Node.js
15
+ - Telegram Bot API token
16
+ - Cloudflare API token
17
+
18
+ # Installation
19
+ 1. Replace {YOUR_TELEGRAM_TOKEN} and {YOUR_CLOUDFLARE_TOKEN} in the code with your actual Telegram Bot API token and Cloudflare API token, respectively.
20
+ 2. Replace {YOUR_ACCOUNT_ID} in the URL with your actual Cloudflare account ID.
21
+
22
+ # Usage
23
+ 1. Run the bot:
24
+ ```
25
+ node index.js
26
+ ```
27
+ 2. Send a message to the bot on Telegram. The bot will generate an AI response to the message and send it back to you.
28
+
29
+ # Note
30
+
31
+ This bot uses the Cloudflare Workers AI model '@cf/meta/llama-2-7b-chat-int8' for generating AI responses. The quality of the responses may vary depending on the complexity of the input and the specific capabilities of the AI model.
32
+