Update app.py
Browse files
app.py
CHANGED
|
@@ -17,9 +17,9 @@ app = FastAPI()
|
|
| 17 |
# -------------------------------------------------------------------
|
| 18 |
# We no longer use a global TELEGRAM_API_URL variable.
|
| 19 |
# The bot token is obtained on demand via the helper function below.
|
| 20 |
-
TELEGRAM_BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
|
| 21 |
-
if not TELEGRAM_BOT_TOKEN:
|
| 22 |
-
|
| 23 |
|
| 24 |
# Conversation state
|
| 25 |
user_inputs = {}
|
|
|
|
| 17 |
# -------------------------------------------------------------------
|
| 18 |
# We no longer use a global TELEGRAM_API_URL variable.
|
| 19 |
# The bot token is obtained on demand via the helper function below.
|
| 20 |
+
# TELEGRAM_BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
|
| 21 |
+
# if not TELEGRAM_BOT_TOKEN:
|
| 22 |
+
# raise ValueError("Please set the TELEGRAM_BOT_TOKEN environment variable.")
|
| 23 |
|
| 24 |
# Conversation state
|
| 25 |
user_inputs = {}
|