import telebot
import config
bot = telebot.Telebot(config.TOKEN)
@bot.message.handler(content_types = ['text'])
def lalala(message):
bot.send_messsage(message.chat.id, message.text)
#RUN
bot.polling(none.stop = True)
Traceback (most recent call last):
File "bot.py", line 4, in <module>
bot = telebot.Telebot(config.TOKEN)
AttributeError: module 'telebot' has no attribute 'Telebot'
import telebot
import config
bot = telebot.TeleBot(config.TOKEN)
@bot.message_handler(content_types = ['text'])
def lalala(message):
bot.send_message(message.chat.id,message.text)
if __name__ == '__main__':
bot.polling(none_stop=True)