telegram-tutorial icon indicating copy to clipboard operation
telegram-tutorial copied to clipboard

NameError: name 'bot' is not defined

Open Querote opened this issue 1 year ago • 0 comments

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

Querote avatar Apr 08 '24 09:04 Querote