Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto delete #27

Open
wants to merge 2 commits into
base: AutoDelete
Choose a base branch
from
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 @@ -10,37 +10,37 @@


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

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

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

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

# NAMA OWNER
OWNER = os.environ.get("OWNER", "sewxiy")

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

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

#Database
DB_URI = os.environ.get("DATABASE_URL", "")
DB_NAME = os.environ.get("DATABASE_NAME", "Cluster0")
DB_URI = os.environ.get("DATABASE_URL", "mongodb+srv://madtoazenzio:[email protected]/?retryWrites=true&w=majority&appName=devutty")
DB_NAME = os.environ.get("DATABASE_NAME", "devutty")

#force sub channel id, if you want enable force sub
FORCE_SUB_CHANNEL = int(os.environ.get("FORCE_SUB_CHANNEL", "-1001473043276"))
FORCE_SUB_CHANNEL2 = int(os.environ.get("FORCE_SUB_CHANNEL2", "-1001644866777"))
FORCE_SUB_CHANNEL = int(os.environ.get("FORCE_SUB_CHANNEL", "0"))
FORCE_SUB_CHANNEL2 = int(os.environ.get("FORCE_SUB_CHANNEL2", "0"))

TG_BOT_WORKERS = int(os.environ.get("TG_BOT_WORKERS", "4"))

FILE_AUTO_DELETE = int(os.getenv("FILE_AUTO_DELETE", "10")) # auto delete in seconds
FILE_AUTO_DELETE = int(os.getenv("FILE_AUTO_DELETE", "30")) # auto delete in seconds

#start message
START_MSG = os.environ.get("START_MESSAGE", "<b>ʙᴀᴋᴋᴀᴀᴀ!! {first}\n\n ɪ ᴀᴍ ғɪʟᴇ sᴛᴏʀᴇ ʙᴏᴛ, ɪ ᴄᴀɴ sᴛᴏʀᴇ ᴘʀɪᴠᴀᴛᴇ ғɪʟᴇs ɪɴ sᴘᴇᴄɪғɪᴇᴅ ᴄʜᴀɴɴᴇʟ ᴀɴᴅ ᴏᴛʜᴇʀ ᴜsᴇʀs ᴄᴀɴ ᴀᴄᴄᴇss ɪᴛ ғʀᴏᴍ sᴘᴇᴄɪᴀʟ ʟɪɴᴋ.</b>")
Expand Down