Answer the question
In order to leave comments, you need to log in
Python bot not working, what should I do?
the python bot does not work and gives the following error
bot = telebot.TeleBot(config.TOKEN)
AttributeError: module 'config' has no attribute 'TOKEN'
the code itself:
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)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question