Spaces:
Runtime error
Runtime error
import 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 | |
def send_welcome(message): | |
bot.reply_to(message, "Welcome to the tele-transcribe-chat bot") | |
# Handler for all other messages | |
def echo_all(message): | |
bot.reply_to(message, message.text) | |
# Start the bot | |
bot.polling() |