I need help with this program

I have a bot file but
The api is missing

[ import re
import os
from SafoneAPI import SafoneAPI
from pyrogram import Client, filters

Safone = Client(
os.getenv(“SESSION_STRING”),
api_id=os.getenv(“API_ID”),
api_hash=os.getenv(“API_HASH”),
)
api = SafoneAPI()

]

This is the api format of the bot file
How can I access my api id, session string & api hash from both
SafoneAPI & dotenv (.env) directory ???

Someone please help

You can use python-dotenv · PyPI to load .env files. It will load the .env into your environment variables, so you can then use os.getenv. There are examples on the PyPI page.