Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit a6b9896

Browse files
committed
Proxy changes.
1 parent e0addd8 commit a6b9896

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

bot.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ async def process_pg_account(account, bot_globals, log):
9191
log.info(f"<y>❌ Account {account['session_name']} is disabled!</y>")
9292
return
9393

94+
if account.get("proxy") == "":
95+
account["proxy"] = None
96+
9497
tg = tgAccount(
9598
bot_globals,
9699
log,
@@ -174,6 +177,9 @@ async def handle_module_accounts(accounts, bot_globals, log):
174177
for account in accounts:
175178
try:
176179
proxy = account.get("proxy")
180+
if proxy == "":
181+
proxy = None
182+
177183
account_name = account.get("session_name")
178184
web_app_data = account.get("web_app_data")
179185

0 commit comments

Comments
 (0)