import os | |
from os import getenv | |
from dotenv import load_dotenv | |
load_dotenv() | |
ENVIRONMENT = os.environ.get('ENVIRONMENT', True) | |
if ENVIRONMENT: | |
try: | |
API_ID = os.environ["API_ID"] | |
except ValueError: | |
raise Exception("Your API_ID is not a valid integer.") | |
API_HASH = os.environ["API_HASH"] | |
BOT_TOKEN = os.environ["BOT_TOKEN"] |