Bot started
2019-09-28 21:53:34,879 (util.py:65 WorkerThread2) ERROR - TeleBot: "ProgrammingError occurred, args=('SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 7040 and this is thread id 7076',)
Traceback (most recent call last):
File "otherTest.py", line 36, in get_name
cur = con.cursor()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 7040 and this is thread id 7076
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python35\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "otherTest.py", line 46, in get_name
bot.send_message(message.from_user.id, "Увы, вас нет в базе.", reply_markup = vkHelperBtn)
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 7040 and this is thread id 7076
"
Traceback (most recent call last):
File "otherTest.py", line 36, in get_name
cur = con.cursor()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 7040 and this is thread id 7076
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "otherTest.py", line 58, in <module>
bot.polling(none_stop = True, interval = 0)
File "C:\Python35\lib\site-packages\telebot\__init__.py", line 389, in polling
self.__threaded_polling(none_stop, interval, timeout)
File "C:\Python35\lib\site-packages\telebot\__init__.py", line 413, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Python35\lib\site-packages\telebot\util.py", line 108, in raise_exceptions
six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
File "C:\Python35\lib\site-packages\six.py", line 693, in reraise
raise value
File "C:\Python35\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "otherTest.py", line 46, in get_name
bot.send_message(message.from_user.id, "Увы, вас нет в базе.", reply_markup = vkHelperBtn)
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 7040 and this is thread id 7076