Traceback (most recent call last):
File "d:\Documents\test\Py\new\telegabot.py", line 24, in
bot.polling()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telebot\__init__.py", line 392, in polling
self.__threaded_polling(none_stop, interval, timeout)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telebot\__init__.py", line 416, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telebot\util.py", line 109, in raise_exceptions
six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\six.py", line 703, in reraise
raise value
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telebot\util.py", line 60, in run
task(*args, **kwargs)
File "d:\Documents\test\Py\new\telegabot.py", line 19, in handle_docs_audio
bot.reply_to(My_ID,bot.get_file(message.document.file_id))
AttributeError: 'NoneType' object has no attribute 'file_id'
@bot.message_handler(content_types=['document', 'audio'])
def handle_docs_audio(message):
bot.reply_to(My_ID,bot.get_file(message.document.file_id))
bot.reply_to_message_id(My_ID)
AttributeError: 'TeleBot' object has no attribute 'reply_to_message_id'