Spaces:
Runtime error
Runtime error
Upto12forenglish
commited on
Commit
•
4acd400
1
Parent(s):
29a9c29
Create app.py
Browse filesimport telebot
# Replace 'YOUR_TOKEN' with your actual bot token
TOKEN = '5649746359:AAFaHK0l0Yx8klcHtCk5LCFcMSrOPshtoBE'
# Create a new Telebot instance
bot = telebot.TeleBot(TOKEN)
# Handler for the '/start' command
@bot
.message_handler(commands=['start'])
def send_welcome(message):
bot.reply_to(message, "Welcome to the tele-transcribe-chat bot")
# Handler for all other messages
@bot
.message_handler(func=lambda message: True)
def echo_all(message):
bot.reply_to(message, message.text)
# Start the bot
bot.polling()