AI Update: برو بعدی
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@ import os
|
||||
from typing import Optional, Dict, Any
|
||||
|
||||
def get_telegram_proxy() -> Optional[Dict[str, Any]]:
|
||||
# Only enable proxy if TELEGRAM_PROXY_ENABLE is 'true' or if local port 10809/10808 is requested
|
||||
enable = os.getenv("TELEGRAM_PROXY_ENABLE", "true").lower() in ("true", "1", "yes")
|
||||
# Only enable proxy if TELEGRAM_PROXY_ENABLE is 'true'
|
||||
enable = os.getenv("TELEGRAM_PROXY_ENABLE", "false").lower() in ("true", "1", "yes")
|
||||
if not enable:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user