Update app.py
Browse files
app.py
CHANGED
|
@@ -137,13 +137,13 @@ async def root():
|
|
| 137 |
|
| 138 |
|
| 139 |
# Function to run bot.py
|
| 140 |
-
def run_bot():
|
| 141 |
-
|
| 142 |
-
|
| 143 |
|
| 144 |
|
| 145 |
if __name__ == "__main__":
|
| 146 |
-
run_bot()
|
| 147 |
import uvicorn
|
| 148 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 149 |
|
|
|
|
| 137 |
|
| 138 |
|
| 139 |
# Function to run bot.py
|
| 140 |
+
# def run_bot():
|
| 141 |
+
# logging.info("Starting Telegram bot...")
|
| 142 |
+
# subprocess.Popen(["python3", "bot.py"])
|
| 143 |
|
| 144 |
|
| 145 |
if __name__ == "__main__":
|
| 146 |
+
# run_bot()
|
| 147 |
import uvicorn
|
| 148 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 149 |
|