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

Update config.py #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
load_dotenv()

# Mandatory variables for the bot to start
API_ID = int(os.getenv("API_ID", "Your Api Id"))
API_HASH = os.environ.get("API_HASH", "Your Api Hash")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "Bot Token")
API_ID = int(os.getenv("API_ID", "23959532"))
API_HASH = os.environ.get("API_HASH", "cb371d8744f6f852dd4b9c43e01349f9")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "6932675345:AAGro8kHiSn6GNCvmnO_aUHhr9NwQUGMDgE")
ADMINS = [int(i.strip()) for i in os.environ.get("ADMINS", "").split(",") if i.strip()]
ADMIN = ADMINS
DATABASE_NAME = os.environ.get("DATABASE_NAME", "Db Name")
DATABASE_URL = os.getenv("DATABASE_URL", "Mongodb url")
OWNER_ID = int(os.environ.get("OWNER_ID", "Owner Id"))
DATABASE_NAME = os.environ.get("DATABASE_NAME", "cluster0")
DATABASE_URL = os.getenv("DATABASE_URL", "mongodb+srv://Hs534415:<H79090@kumar>@cluster0.nagkto0.mongodb.net/")
OWNER_ID = int(os.environ.get("OWNER_ID", "-1001906223425"))
ADMINS.append(OWNER_ID) if OWNER_ID not in ADMINS else []

LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "Logs Channels Id"))
UPDATE_CHANNEL = os.environ.get("UPDATE_CHANNEL", "Updates Channel User name Without @") # For Force Subscription
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "1993185966"))
UPDATE_CHANNEL = os.environ.get("UPDATE_CHANNEL", "layersyetem") # For Force Subscription
BROADCAST_AS_COPY = os.environ.get('BROADCAST_AS_COPY', "True") # true if forward should be avoided
WELCOME_IMAGE = os.environ.get("WELCOME_IMAGE", '') # image when someone hit /start
LINK_BYPASS = "False"
26 changes: 13 additions & 13 deletions translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
'''

HELP_MESSAGE = '''**Hi, {}**
A bot to short link support bulk link conversion. I can convert links directly from your EZ4Short account.
A bot to short link support bulk link conversion. I can convert links directly from your shrinkme.ioaccount.

1. Go To 👉 https://bit.ly/EZ4Short
1. Go To 👉 https://shrinkme.io/api
2. Then Copy API Key
3. Then long press /api command then paste your API Key (see example to understand more...)
3. Then long press /api command then paste your API Key (43158cd2de15fd89738b02619a33de9ec093e47b)

**/api Your API Key
(See Example.👇)
Expand All @@ -22,11 +22,11 @@
**Contact** 👉 @Jakeedot (For support)
'''

ABOUT_TEXT = '''**Hey! My name is @EZ4ShortBot.**
ABOUT_TEXT = '''**Hey! My name is 68985.**

**⚡Features⚡**

• I can **Convert any** links or posts to your **EZ4Short** link / post. (Button Links Posts, Hidden links/Hyperlinks All Are Supported)
• I can **Convert any** links or posts to your **68985** link / post. (Button Links Posts, Hidden links/Hyperlinks All Are Supported)

• I Can **auto** add custom **footer text** to your every post. Hit 👉 /footer To know more...

Expand All @@ -45,7 +45,7 @@

This feature works only in private mode only

Ex: https://t.me/reUpdates | Updates"""
Ex: Updates"""


ADMINS_MESSAGE = """
Expand Down Expand Up @@ -90,11 +90,11 @@
])

USER_ABOUT_MESSAGE = """
- Website: [{base_site}](https://ez4short.com/ref/jakeedot)
- Website: [{base_site}](https://shrinkme.io/ref/Hs534415)

- Site Link {base_site} Current Linked API: {shortener_api}

- Replace Channel Username: @{username}
- Replace Channel Username: @layersyetem

- Header Text:
{header_text}
Expand All @@ -111,9 +111,9 @@

Ex: `/api de303d5270f481aec928f39883da7b7f9a8812ac `

Get API From [{base_site}](https://ez4short.com/ref/jakeedot)
Get API From [{base_site}](https://shrinkme.io/ref/Hs534415)

Current API: `{shortener_api}`"""
Current API: `{43158cd2de15fd89738b02619a33de9ec093e47b}`"""

HEADER_MESSAGE = """**Reply to the Header Text You Want**

Expand All @@ -129,14 +129,14 @@
For adding **line break** use \n
To Remove Footer Text: `/footer remove`"""

USERNAME_TEXT = """**Hi! {}, I am EZ4Short bot, bulk link converter bot From Linked Your EZ4Short Account,**
USERNAME_TEXT = """**Hi! {}, I am EZ4Short bot, bulk link converter bot From Linked Your 68985 Account,**

**🌟 Type** /channel (channel link or username)

**example:**
/channel @EZ4Short
/channel @layersyetem
Or
/channel https://t.me/EZ4Short
/channel https://t.me/layersyetem

**🤘 Hit** 👉 /features To Know More Features Of This Bot.

Expand Down