import telebot
import config
bot = telebot.TeleBot(config.TOKEN)
@bot.message_handler(content_types=['text'])
def lalala(message):
bot.send_message(message.id,message.text)
# RUN
bot.polling(none_stop=True)
import telebot, traceback
TOKEN = ""
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(content_types=['text'])
def lalala(message):
print(message)
try:
bot.send_message(message.chat.id, message.text)
except:
print(traceback.print_exc())
# RUN
bot.polling(none_stop=True)