AstraOS commited on
Commit
ec11cd2
·
verified ·
1 Parent(s): c448d07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -188,7 +188,10 @@ logging.basicConfig(
188
  # ------------------------------------------------------------------------------
189
 
190
  TOKEN = os.environ["BOT_TOKEN"]
191
- bot = telebot.TeleBot(TOKEN)
 
 
 
192
  OWNER_ID = int(os.getenv("CHAT_IDS")) # Replace with your Telegram user ID (owner-only commands).
193
 
194
  # ------------------------------------------------------------------------------
 
188
  # ------------------------------------------------------------------------------
189
 
190
  TOKEN = os.environ["BOT_TOKEN"]
191
+ PROXY_BASE = os.getenv("PROXY_BASE")
192
+ bot = telebot.TeleBot(TOKEN, **{"apiserver": PROXY_BASE} if PROXY_BASE else {})
193
+ # bot = telebot.TeleBot(TOKEN, apiserver=PROXY_BASE)bot = telebot.TeleBot(TOKEN)
194
+
195
  OWNER_ID = int(os.getenv("CHAT_IDS")) # Replace with your Telegram user ID (owner-only commands).
196
 
197
  # ------------------------------------------------------------------------------