bot
commited on
Commit
·
45f1fb6
1
Parent(s):
20ab867
test
Browse files
main.py
CHANGED
@@ -171,11 +171,10 @@ async def init_client():
|
|
171 |
print("==========test==============")
|
172 |
# await TG_BOT_APPLICATION.bot.delete_webhook()
|
173 |
await TG_BOT_APPLICATION.bot.set_webhook(TG_WEBHOOK_URL)
|
174 |
-
|
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 回调
|
|
|
171 |
print("==========test==============")
|
172 |
# await TG_BOT_APPLICATION.bot.delete_webhook()
|
173 |
await TG_BOT_APPLICATION.bot.set_webhook(TG_WEBHOOK_URL)
|
174 |
+
await TG_BOT_APPLICATION.initialize()
|
175 |
# 将命令处理函数添加到 dispatcher
|
176 |
TG_BOT_APPLICATION.add_handler(CommandHandler("start", start))
|
177 |
TG_BOT_APPLICATION.add_handler(CommandHandler("help", help))
|
|
|
178 |
|
179 |
|
180 |
# FastAPI 路由:接收来自 Telegram 的 Webhook 回调
|