Traceback (most recent call last):
File "C:\Users\Wizi\Desktop\ExBot\main.py", line 1287, in <module>
bot.polling(none_stop=False, interval=0, timeout=120)
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\__init__.py", line 496, in polling
self.__threaded_polling(none_stop, interval, timeout, long_polling_timeout)
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\__init__.py", line 555, in __threaded_polling
raise e
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\__init__.py", line 518, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\util.py", line 117, in raise_exceptions
raise self.exception_info
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\util.py", line 69, in run
task(*args, **kwargs)
File "C:\Users\Wizi\Desktop\ExBot\main.py", line 98, in start
bot.send_photo(message.chat.id, photo,
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\__init__.py", line 836, in send_photo
apihelper.send_photo(self.token, chat_id, photo, caption, reply_to_message_id, reply_markup,
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\apihelper.py", line 409, in send_photo
payload['reply_markup'] = _convert_markup(reply_markup)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\apihelper.py", line 1335, in _convert_markup
return markup.to_json()
^^^^^^^^^^^^^^^^
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\types.py", line 1052, in to_json
return json.dumps(self.to_dict())
^^^^^^^^^^^^^^
File "C:\Users\Wizi\AppData\Local\Programs\Python\Python312\Lib\site-packages\telebot\types.py", line 1056, in to_dict
json_dict['inline_keyboard'] = [[button.to_dict() for button in row] for row in self.keyboard]
^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'to_dict'