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
20 changes: 10 additions & 10 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@
load_dotenv()

#Bot token @Botfather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "8320311408:AAHP9LonV308YMhuOShvbfOvl8OJVznlV_g")

#Your API ID from my.telegram.org
APP_ID = int(os.environ.get("APP_ID", ""))
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")

#Your db channel Id
CHANNEL_ID = int(os.environ.get("CHANNEL_ID", ""))
CHANNEL_ID = int(os.environ.get("CHANNEL_ID", "-1003144143827"))

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

#Port
PORT = os.environ.get("PORT", "8080")
PORT = os.environ.get("PORT", "19093")

#Database
DB_URI = os.environ.get("DATABASE_URL", "")
DB_URI = os.environ.get("DATABASE_URL", "XCDKJ3T6H5WikLU3@cluster0.ktll4yi.mongodb.net")
DB_NAME = os.environ.get("DATABASE_NAME", "filesharexbot")

#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", "-1003288815459"))
JOIN_REQUEST_ENABLE = os.environ.get("JOIN_REQUEST_ENABLED", None)

TG_BOT_WORKERS = int(os.environ.get("TG_BOT_WORKERS", "4"))
Expand All @@ -40,7 +40,7 @@
START_MSG = os.environ.get("START_MESSAGE", "Hello {first}\n\nI can store private files in Specified Channel and other users can access it from special link.")
try:
ADMINS=[]
for x in (os.environ.get("ADMINS", "").split()):
for x in (os.environ.get("ADMINS", "6190987091").split()):
ADMINS.append(int(x))
except ValueError:
raise Exception("Your Admins list does not contain valid integers.")
Expand All @@ -66,7 +66,7 @@
USER_REPLY_TEXT = "❌Don't send me messages directly I'm only File Share bot!"

ADMINS.append(OWNER_ID)
ADMINS.append(1250450587)
ADMINS.append(6190987091)

LOG_FILE_NAME = "filesharingbot.txt"

Expand Down