Update app.py
Browse files
app.py
CHANGED
@@ -90,10 +90,10 @@ telegram_app.add_handler(CommandHandler("start", start))
|
|
90 |
telegram_app.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_message))
|
91 |
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
|
98 |
|
99 |
# API Route to receive updates from Telegram
|
|
|
90 |
telegram_app.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_message))
|
91 |
|
92 |
|
93 |
+
# Call initialize when starting
|
94 |
+
@app.on_event("startup")
|
95 |
+
async def startup_event():
|
96 |
+
await init_telegram()
|
97 |
|
98 |
|
99 |
# API Route to receive updates from Telegram
|