Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tg_bot/sample_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class Config(object):
LOGGER = True

# REQUIRED
API_KEY = "YOUR KEY HERE"
OWNER_ID = "YOUR ID HERE" # If you dont know, run the bot and do /id in your private chat with it
OWNER_USERNAME = "YOUR USERNAME HERE"
API_KEY = "8688975164:AAGP8NSDkxU7wH6iLhmiCZ-hYsKN2Ehf0OU"
OWNER_ID = "6978422074" # If you dont know, run the bot and do /id in your private chat with it
OWNER_USERNAME = "Mr_1PaNDaY"
Comment on lines +13 to +15

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚨 issue (security): Avoid committing real API keys and personal identifiers in sample config; keep placeholders or use env vars instead.

Including what looks like a real bot API key, owner ID, and username here is a security and privacy issue, especially in a public/shared repo, and sets a bad example for consumers of this sample. If this key has been pushed to any remote, rotate it immediately and invalidate the old one.


# RECOMMENDED
SQLALCHEMY_DATABASE_URI = 'sqldbtype://username:pw@hostname:port/db_name' # needed for any database modules
Expand Down