@bot.message_handler(commands=['start','Меню'])
def start(message):
connect = sqlite3.connect('users.db')
cursor = connect.cursor()
cursor.execute("""CREATE TABLE IF NOT EXISTS login_id(
id INTEGER
)""")
connect.commit()
people_id = message.from_user.id
cursor.execute(f"SELECT id FROM login_id WHERE id = {people_id}")
data = cursor.fetchone()
if data is None:
user_list = [message.from_user.id]
cursor.execute("INSERT INTO login_id VALUES(?);",user_list)
connect.commit()