Skip to content

root - ERROR - The following environment values are missing in your .env: TELEGRAM_BOT_TOKEN #12

Description

@phatberstromgg

Hello, your project is great. But when i set up and ran command "aitelegrambot", i met this, "root - ERROR - The following environment values are missing in your .env: TELEGRAM_BOT_TOKEN", i find this in main.py file, i try this in a my testbug.py file with content:

from dotenv import load_dotenv
import os
load_dotenv()
required_values: list[str] = [
        "TELEGRAM_BOT_TOKEN",
    ]
missing_values: list[str] = [
        value for value in required_values if os.environ.get(value) is None
    ]
print(len(missing_values))
bot_token = os.environ.get("TELEGRAM_BOT_TOKEN")
print(bot_token)

it's confirmed that value "len(missing_values)" = 0, but command "aitelegrambot" return the case when "len(missing_values)" >0, coud you re-check your build and help me, thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions