Skip to content

Update config.py#356

Open
ajayinnocent326-hub wants to merge 1 commit intoCodeXBotz:mainfrom
ajayinnocent326-hub:patch-3
Open

Update config.py#356
ajayinnocent326-hub wants to merge 1 commit intoCodeXBotz:mainfrom
ajayinnocent326-hub:patch-3

Conversation

@ajayinnocent326-hub
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

Updates config.py defaults for a Telegram file-sharing bot by hardcoding production-like values for tokens/IDs/DB settings.

Changes:

  • Replaced environment-only configuration with concrete default values for bot/API credentials and chat/user IDs.
  • Changed default port, database name/URI, and force-sub channel behavior.
  • Added a hardcoded admin ID to the ADMINS list.

💡 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.


#Bot token @Botfather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "7543182408:AAFv8tj0CMvnxrLdjh0R-tH8Qx4Y7ZO0vko")
Comment on lines +14 to +17
APP_ID = int(os.environ.get("APP_ID", "28902436"))

#Your API Hash from my.telegram.org
API_HASH = os.environ.get("API_HASH", "")
API_HASH = os.environ.get("API_HASH", "78e3c8b856fd5bd13b52066a52404c3c")

#OWNER ID
OWNER_ID = int(os.environ.get("OWNER_ID", ""))
OWNER_ID = int(os.environ.get("OWNER_ID", "6190987091"))
#Database
DB_URI = os.environ.get("DATABASE_URL", "")
DB_NAME = os.environ.get("DATABASE_NAME", "filesharexbot")
DB_URI = os.environ.get("DATABASE_URL", "abinnathNS93@cluster0.za32sml.mongodb.net")

#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", "1003155086322"))

ADMINS.append(OWNER_ID)
ADMINS.append(1250450587)
ADMINS.append(6190987091)
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