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
14 changes: 5 additions & 9 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Don't Remove Credit Tg - @VJ_Bots
# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ
# Ask Doubt on telegram @KingVJ01

import os

# Login feature, if you want then True , if you don't want then False
Expand All @@ -14,16 +10,16 @@
STRING_SESSION = None

# Bot token @Botfather
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "8291262135:AAFsP69sY-zWoDVzvNNC-lzRDNsWwbs-mHE")

# Your API ID from my.telegram.org
API_ID = int(os.environ.get("API_ID", ""))
API_ID = int(os.environ.get("API_ID", "20831812"))

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

# Your Owner / Admin Id For Broadcast
ADMINS = int(os.environ.get("ADMINS", "6073523936"))
ADMINS = int(os.environ.get("ADMINS", "6288683814"))

# Your Channel Id In Which Bot Upload Downloaded Video/File/Message etc.
# And Make Your Bot Admin In this channel with full rights.
Expand All @@ -32,7 +28,7 @@

# Your Mongodb Database Url
# Warning - Give Db uri in deploy server environment variable, don't give in repo.
DB_URI = os.environ.get("DB_URI", "") # Warning - Give Db uri in deploy server environment variable, don't give in repo.
DB_URI = os.environ.get("DB_URI", "mongodb+srv://aryanktr92:pBw41GcqtlnpFjwq@cluster0.nqsufox.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0") # Warning - Give Db uri in deploy server environment variable, don't give in repo.
DB_NAME = os.environ.get("DB_NAME", "vjsavecontentbot")

# Increase time as much as possible to avoid floodwait, spamming and tg account ban issues.
Expand Down