bot
commited on
Commit
·
20ab867
1
Parent(s):
fb4f49c
Test
Browse files
main.py
CHANGED
@@ -175,7 +175,7 @@ async def init_client():
|
|
175 |
# 将命令处理函数添加到 dispatcher
|
176 |
TG_BOT_APPLICATION.add_handler(CommandHandler("start", start))
|
177 |
TG_BOT_APPLICATION.add_handler(CommandHandler("help", help))
|
178 |
-
await TG_BOT_APPLICATION.
|
179 |
|
180 |
|
181 |
# FastAPI 路由:接收来自 Telegram 的 Webhook 回调
|
|
|
175 |
# 将命令处理函数添加到 dispatcher
|
176 |
TG_BOT_APPLICATION.add_handler(CommandHandler("start", start))
|
177 |
TG_BOT_APPLICATION.add_handler(CommandHandler("help", help))
|
178 |
+
await TG_BOT_APPLICATION.initialize()
|
179 |
|
180 |
|
181 |
# FastAPI 路由:接收来自 Telegram 的 Webhook 回调
|