Upto12forenglish commited on
Commit
dbd557b
1 Parent(s): 4acd400

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import telebot
2
+
3
+ # Replace 'YOUR_TOKEN' with your actual bot token
4
+ TOKEN = '5649746359:AAFaHK0l0Yx8klcHtCk5LCFcMSrOPshtoBE'
5
+
6
+ # Create a new Telebot instance
7
+ bot = telebot.TeleBot(TOKEN)
8
+
9
+ # Handler for the '/start' command
10
+ @bot.message_handler(commands=['start'])
11
+ def send_welcome(message):
12
+ bot.reply_to(message, "Welcome to the tele-transcribe-chat bot")
13
+
14
+ # Handler for all other messages
15
+ @bot.message_handler(func=lambda message: True)
16
+ def echo_all(message):
17
+ bot.reply_to(message, message.text)
18
+
19
+ # Start the bot
20
+ bot.polling()