Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,14 @@ from fastapi import FastAPI
|
|
| 2 |
|
| 3 |
app = FastAPI()
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
@app.get("/")
|
| 6 |
def greet_json():
|
| 7 |
return {"Hello": "World!"}
|
|
|
|
| 2 |
|
| 3 |
app = FastAPI()
|
| 4 |
|
| 5 |
+
# Retrieve the Telegram bot token from environment variables
|
| 6 |
+
TELEGRAM_BOT_TOKEN = os.environ.get('TELEGRAM_BOT_TOKEN')
|
| 7 |
+
# Retrieve the secret token for webhook security from environment variables
|
| 8 |
+
SECRET_TOKEN = os.environ.get('SECRET_TOKEN')
|
| 9 |
+
|
| 10 |
+
print(TELEGRAM_BOT_TOKEN)
|
| 11 |
+
print(SECRET_TOKEN)
|
| 12 |
+
|
| 13 |
@app.get("/")
|
| 14 |
def greet_json():
|
| 15 |
return {"Hello": "World!"}
|