Traceback (most recent call last):
File "/Users/mohamedmaatoug/Documents/greed/venv/lib/python3.9/site-packages/telegram/ext/dispatcher.py", line 447, in process_update
handler.handle_update(update, self, check, context)
File "/Users/mohamedmaatoug/Documents/greed/venv/lib/python3.9/site-packages/telegram/ext/handler.py", line 160, in handle_update
return self.callback(update, context)
File "/Users/mohamedmaatoug/Documents/greed/dadad.py", line 35, in start
cursor.execute("INSERT INTO users (user_id, first_name, subscription_start_date, subscription_end_date) VALUES (?, ?, ?, ?)",
sqlite3.OperationalError: table users has no column named subscription_start_date
2024-02-18 21:01:02,917 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/Users/mohamedmaatoug/Documents/greed/venv/lib/python3.9/site-packages/telegram/ext/dispatcher.py", line 447, in process_update
handler.handle_update(update, self, check, context)
File "/Users/mohamedmaatoug/Documents/greed/venv/lib/python3.9/site-packages/telegram/ext/handler.py", line 160, in handle_update
return self.callback(update, context)
File "/Users/mohamedmaatoug/Documents/greed/dadad.py", line 58, in list_users
cursor.execute("SELECT subscription_start_date, subscription_end_date FROM users WHERE user_id=?", (user_id,))
UnboundLocalError: local variable 'user_id' referenced before assignment