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
50 changes: 25 additions & 25 deletions info.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,55 +21,55 @@ def is_valid_ip(ip):
return re.match(ip_pattern, ip) is not None

# Bot information
API_ID = environ.get('API_ID', '')
API_ID = environ.get('API_ID', '22884479')
if len(API_ID) == 0:
logger.error('API_ID is missing, exiting now')
exit()
else:
API_ID = int(API_ID)
API_HASH = environ.get('API_HASH', '')
API_HASH = environ.get('API_HASH', 'f208d3d04fd9e53389a3b210f87ccde8')
if len(API_HASH) == 0:
logger.error('API_HASH is missing, exiting now')
exit()
BOT_TOKEN = environ.get('BOT_TOKEN', '')
BOT_TOKEN = environ.get('BOT_TOKEN', '7635145970:AAE0Lht6iDH3DQTJd2UlTob8Riy5BeVJz3E')
if len(BOT_TOKEN) == 0:
logger.error('BOT_TOKEN is missing, exiting now')
exit()
BOT_ID = BOT_TOKEN.split(":")[0]
PORT = int(environ.get('PORT', '80'))

# Upload your images to "postimages.org" and get direct link
PICS = (environ.get('PICS', 'https://i.postimg.cc/8C15CQ5y/1.png https://i.postimg.cc/gcNtrv0m/2.png https://i.postimg.cc/cHD71BBz/3.png https://i.postimg.cc/F1XYhY8q/4.png https://i.postimg.cc/1tNwGVxC/5.png https://i.postimg.cc/dtW30QpL/6.png https://i.postimg.cc/139dvs3c/7.png https://i.postimg.cc/QtXVtB8K/8.png https://i.postimg.cc/y8j8G1XV/9.png https://i.postimg.cc/zDF6KyJX/10.png https://i.postimg.cc/fyycVqzd/11.png https://i.postimg.cc/26ZBtBZr/13.png https://i.postimg.cc/PJn8nrWZ/14.png https://i.postimg.cc/cC7txyhz/15.png https://i.postimg.cc/kX9tjGXP/16.png https://i.postimg.cc/zXjH4NVb/17.png https://i.postimg.cc/sggGrLhn/18.png https://i.postimg.cc/y8pgYTh7/19.png')).split()
PICS = (environ.get('PICS', 'https://i.postimg.cc/QMQb1F35/Gemini-Generated-Image-gl0cdrgl0cdrgl0c.png https://i.postimg.cc/QN6djDzq/6122948.png https://i.postimg.cc/hPkgGt0W/f9134655b53cbeaeb00664b04371b9b0.png https://i.postimg.cc/kXBX4Z36/frogverbal-emojisarecool.png https://i.postimg.cc/1tmyZ7cC/here-help-symbol-concept-words-260nw-2231747909.png https://i.postimg.cc/Bby3HS9Z/images-1.pnghttps://i.postimg.cc/bNDp8tkQ/images.png https://i.postimg.cc/y8j8G1XV/9.png https://i.postimg.cc/c4pZJLBF/images1.png https://i.postimg.cc/fyycVqzd/11.png https://i.postimg.cc/RV10Htp0/Gemini-Generated-Image-hnbjq3hnbjq3hnbj.png https://i.postimg.cc/sDCPptyK/Gemini-Generated-Image-9cd47m9cd47m9cd4.png https://i.postimg.cc/sDCPptyK/Gemini-Generated-Image-9cd47m9cd47m9cd4.png https://i.postimg.cc/sDCPptyK/Gemini-Generated-Image-9cd47m9cd47m9cd4.png https://i.postimg.cc/6qMYjcBL/Gemini-Generated-Image-57lyaz57lyaz57ly.png https://i.postimg.cc/0yzPCH9Y/Gemini-Generated-Image-i721d1i721d1i721.png https://i.postimg.cc/W3CHTSB4/Gemini-Generated-Image-9xa4oc9xa4oc9xa4.png')).split()

# Bot Admins
ADMINS = environ.get('ADMINS', '')
ADMINS = environ.get('ADMINS', '8349068059')
if len(ADMINS) == 0:
logger.error('ADMINS is missing, exiting now')
exit()
else:
ADMINS = [int(admins) for admins in ADMINS.split()]

# Channels
INDEX_CHANNELS = [int(index_channels) if index_channels.startswith("-") else index_channels for index_channels in environ.get('INDEX_CHANNELS', '').split()]
INDEX_CHANNELS = [int(index_channels) if index_channels.startswith("-") else index_channels for index_channels in environ.get('INDEX_CHANNELS', '-1002671428101').split()]
if len(INDEX_CHANNELS) == 0:
logger.info('INDEX_CHANNELS is empty')
LOG_CHANNEL = environ.get('LOG_CHANNEL', '')
LOG_CHANNEL = environ.get('LOG_CHANNEL', '-1003167540773')
if len(LOG_CHANNEL) == 0:
logger.error('LOG_CHANNEL is missing, exiting now')
exit()
else:
LOG_CHANNEL = int(LOG_CHANNEL)

# support group
SUPPORT_GROUP = environ.get('SUPPORT_GROUP', '')
SUPPORT_GROUP = environ.get('SUPPORT_GROUP', '4840514302')
if len(SUPPORT_GROUP) == 0:
logger.error('SUPPORT_GROUP is missing, exiting now')
exit()
else:
SUPPORT_GROUP = int(SUPPORT_GROUP)

# MongoDB information
DATA_DATABASE_URL = environ.get('DATA_DATABASE_URL', "")
DATA_DATABASE_URL = environ.get('DATA_DATABASE_URL', "mongodb+srv://noyobe9060_db_user:[email protected]/?retryWrites=true&w=majority&appName=Cluster0")
if len(DATA_DATABASE_URL) == 0:
logger.error('DATA_DATABASE_URL is missing, exiting now')
exit()
Expand All @@ -84,16 +84,16 @@ def is_valid_ip(ip):
COLLECTION_NAME = environ.get('COLLECTION_NAME', 'Files')

# Links
SUPPORT_LINK = environ.get('SUPPORT_LINK', 'https://t.me/HA_Bots_Support')
UPDATES_LINK = environ.get('UPDATES_LINK', 'https://t.me/HA_Bots')
FILMS_LINK = environ.get('FILMS_LINK', 'https://t.me/HA_Films_World')
SUPPORT_LINK = environ.get('SUPPORT_LINK', 'https://t.me/padampluse0')
UPDATES_LINK = environ.get('UPDATES_LINK', 'https://t.me/padampulse')
FILMS_LINK = environ.get('FILMS_LINK', 'https://t.me/padampulse')
TUTORIAL = environ.get("TUTORIAL", "https://t.me/HA_Bots")
VERIFY_TUTORIAL = environ.get("VERIFY_TUTORIAL", "https://t.me/HA_Bots")

# Bot settings
TIME_ZONE = environ.get('TIME_ZONE', 'Asia/Colombo') # Replace your time zone
DELETE_TIME = int(environ.get('DELETE_TIME', 3600)) # Add time in seconds
CACHE_TIME = int(environ.get('CACHE_TIME', 300))
DELETE_TIME = int(environ.get('DELETE_TIME', 100)) # Add time in seconds
CACHE_TIME = int(environ.get('CACHE_TIME', 200))
MAX_BTN = int(environ.get('MAX_BTN', 8))
LANGUAGES = [language.lower() for language in environ.get('LANGUAGES', 'hindi english telugu tamil kannada malayalam marathi punjabi').split()]
QUALITY = [quality.lower() for quality in environ.get('QUALITY', '360p 480p 720p 1080p 2160p').split()]
Expand All @@ -104,29 +104,29 @@ def is_valid_ip(ip):
VERIFY_EXPIRE = int(environ.get('VERIFY_EXPIRE', 86400)) # Add time in seconds
WELCOME_TEXT = environ.get("WELCOME_TEXT", script.WELCOME_TEXT)
INDEX_EXTENSIONS = [extensions.lower() for extensions in environ.get('INDEX_EXTENSIONS', 'mp4 mkv').split()]
PM_FILE_DELETE_TIME = int(environ.get('PM_FILE_DELETE_TIME', '3600'))
PM_FILE_DELETE_TIME = int(environ.get('PM_FILE_DELETE_TIME', '1000'))

# boolean settings
USE_CAPTION_FILTER = is_enabled('USE_CAPTION_FILTER', False)
USE_CAPTION_FILTER = is_enabled('USE_CAPTION_FILTER', True)
IS_VERIFY = is_enabled('IS_VERIFY', False)
AUTO_DELETE = is_enabled('AUTO_DELETE', False)
WELCOME = is_enabled('WELCOME', False)
PROTECT_CONTENT = is_enabled('PROTECT_CONTENT', False)
AUTO_DELETE = is_enabled('AUTO_DELETE', True)
WELCOME = is_enabled('WELCOME', True)
PROTECT_CONTENT = is_enabled('PROTECT_CONTENT', True)
LONG_IMDB_DESCRIPTION = is_enabled("LONG_IMDB_DESCRIPTION", False)
LINK_MODE = is_enabled("LINK_MODE", True)
LINK_MODE = is_enabled("LINK_MODE", False)
IMDB = is_enabled('IMDB', True)
SPELL_CHECK = is_enabled("SPELL_CHECK", True)
SHORTLINK = is_enabled('SHORTLINK', False)

# for stream
IS_STREAM = is_enabled('IS_STREAM', True)
BIN_CHANNEL = environ.get("BIN_CHANNEL", "")
BIN_CHANNEL = environ.get("BIN_CHANNEL", "1003169026067")
if len(BIN_CHANNEL) == 0:
logger.error('BIN_CHANNEL is missing, exiting now')
exit()
else:
BIN_CHANNEL = int(BIN_CHANNEL)
URL = environ.get("URL", "")
URL = environ.get("URL", "mongodb+srv://ajlananeey_db_user:<db_password>@cluster0.jdasmoh.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0")
if len(URL) == 0:
logger.error('URL is missing, exiting now')
exit()
Expand Down Expand Up @@ -154,8 +154,8 @@ def is_valid_ip(ip):
UPI_NAME = environ.get("UPI_NAME", "") # add your UPI account name
if len(UPI_NAME) == 0:
logger.info('UPI_NAME is empty')
RECEIPT_SEND_USERNAME = environ.get("RECEIPT_SEND_USERNAME", "@Hansaka_Anuhas")
RECEIPT_SEND_USERNAME = environ.get("RECEIPT_SEND_USERNAME", "@barroda")
if len(UPI_ID) == 0 or len(UPI_NAME) == 0:
logger.info('IS_PREMIUM disabled due to empty UPI_ID or UPI_NAME')
IS_PREMIUM = False

IS_PREMIUM = true