if user is None:
cur.execute('INSERT INTO users(id, name, balance) VALUES (?,?,?)', (user_id, call.message.chat.first_name, 0))
conn.commit()
bot.send_message(user_id, 'Привет, твой баланс - 0')
sqlite3.IntegrityError: UNIQUE constraint failed: users.id