telegram-tutorial
telegram-tutorial copied to clipboard
NameError: name 'bot' is not defined
here is the code import telebot token ='7063597612:AAEXK5vls9PlCOn4fSG7QsNznK...d626mAY' bot = telebot.TeleBot(token) @bot.message_handler(commands=['start']) def say_hi(message): bot.send_message(message.chat.id, 'Привет') bot.polling(none_stop=True, interval=0) an error is coming out: NameError: name 'bot' is not defined