db = sqlite3.connect('database.db')
sql = db.cursor()
sql.execute("""CREATE TABLE IF NOT EXISTS users(
id INT
balance BIGINT
name TEXT)""")
db.commit()
user = vk_session.method("users.get", {"user_ids": id})
name = user[0]['first_name']
sql.execute(f"INSERT INTO users VALUES (?, ?, ?)", (id, 0, name))
db.commit()
sql.execute("""CREATE TABLE IF NOT EXISTS users(
id INT
balance BIGINT
name TEXT)""")
CREATE TABLE IF NOT EXISTS users(
id INT,
balance BIGINT,
name TEXT)