Skip to content

Update config.py#360

Open
databaseandbot-png wants to merge 1 commit intoCodeXBotz:mainfrom
databaseandbot-png:patch-2
Open

Update config.py#360
databaseandbot-png wants to merge 1 commit intoCodeXBotz:mainfrom
databaseandbot-png:patch-2

Conversation

@databaseandbot-png
Copy link

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the bot’s runtime configuration defaults in config.py, replacing previously empty/neutral environment-variable fallbacks with specific Telegram credentials/IDs, a database name, and a default start image URL.

Changes:

  • Hardcodes fallback values for APP_ID / API_HASH when env vars are missing.
  • Hardcodes fallback values for CHANNEL_ID, OWNER_ID, and FORCE_SUB_CHANNEL.
  • Changes default DB_NAME and sets a non-empty default START_PIC URL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +14 to +17
APP_ID = int(os.environ.get("APP_ID", "25237912"))

#Your API Hash from my.telegram.org
API_HASH = os.environ.get("API_HASH", "")
API_HASH = os.environ.get("API_HASH", "e192dcc0926b4f447b8f28187f7e533b")
Comment on lines +20 to +23
CHANNEL_ID = int(os.environ.get("CHANNEL_ID", "-1002804196657"))

#OWNER ID
OWNER_ID = int(os.environ.get("OWNER_ID", ""))
OWNER_ID = int(os.environ.get("OWNER_ID", "5751033456"))

#force sub channel id, if you want enable force sub
FORCE_SUB_CHANNEL = int(os.environ.get("FORCE_SUB_CHANNEL", "0"))
FORCE_SUB_CHANNEL = int(os.environ.get("FORCE_SUB_CHANNEL", "-1002804196657"))
#Database
DB_URI = os.environ.get("DATABASE_URL", "")
DB_NAME = os.environ.get("DATABASE_NAME", "filesharexbot")
DB_NAME = os.environ.get("DATABASE_NAME", "Davi")

#start message
START_PIC = os.environ.get("START_PIC","")
START_PIC = os.environ.get("START_PIC","https://files.catbox.moe/r9pwvd.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants