Spaces:
Runtime error
Runtime error
File size: 599 Bytes
dbd557b da7e89f dbd557b 7d7b57b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import telebot
# Replace 'YOUR_TOKEN' with your actual bot token
TOKEN = '5649746359:AAFaHK0l0Yx8klcHtCk5LCFcMSrOPshtoBE'
import os, certifi
os.environ['SSL_CERT_FILE'] = certifi.where()
# 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() |