Open
Conversation
There was a problem hiding this comment.
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_HASHwhen env vars are missing. - Hardcodes fallback values for
CHANNEL_ID,OWNER_ID, andFORCE_SUB_CHANNEL. - Changes default
DB_NAMEand sets a non-empty defaultSTART_PICURL.
💡 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.