def add_user(message):
cursor.execute("SELECT id FROM users WHERE id=?", (message.chat.id,))
user = cursor.fetchone()
if not user:
cursor.execute("INSERT INTO users VALUES(?, ?, ?, ?, ?)", (message.chat.id, "name", 'numb', 'surname', 'peoples',))
database.commit()
else:
return False