Traceback (most recent call last):
File "main.py", line 37, in
bot.polling()
File "C:\Users\ilbaa\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\__init__.py", line 1043, in polling
self.__threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout,
File "C:\Users\ilbaa\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\__init__.py", line 1118, in __threaded_polling
raise e
File "C:\Users\ilbaa\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\__init__.py", line 1074, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\ilbaa\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\util.py", line 156, in raise_exceptions
raise self.exception_info
File "C:\Users\ilbaa\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\util.py", line 100, in run
task(*args, **kwargs)
File "C:\Users\ilbaa\AppData\Local\Programs\Python\Python38\lib\site-packages\telebot\__init__.py", line 6395, in _run_middlewares_and_handler
result = handler['function'](message)
File "main.py", line 29, in send_message
text.message.text.lower()
NameError: name 'text' is not defined