teletalk / app.py
Upto12forenglish's picture
Update app.py
dbd557b verified
raw
history blame
No virus
533 Bytes
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
@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()