bot commited on
Commit
9de56be
·
1 Parent(s): 6f8116f
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -166,6 +166,7 @@ async def init_client():
166
  print("未设置TG_BOT_TOKEN无法实现TG机器人功能!")
167
  else:
168
  TG_BOT_APPLICATION = Application.builder().token(TG_BOT_TOKEN).build()
 
169
  await TG_BOT_APPLICATION.bot.set_webhook(TG_WEBHOOK_URL)
170
  # 将命令处理函数添加到 dispatcher
171
  TG_BOT_APPLICATION.add_handler(CommandHandler("start", start))
 
166
  print("未设置TG_BOT_TOKEN无法实现TG机器人功能!")
167
  else:
168
  TG_BOT_APPLICATION = Application.builder().token(TG_BOT_TOKEN).build()
169
+ print(TG_WEBHOOK_URL)
170
  await TG_BOT_APPLICATION.bot.set_webhook(TG_WEBHOOK_URL)
171
  # 将命令处理函数添加到 dispatcher
172
  TG_BOT_APPLICATION.add_handler(CommandHandler("start", start))