bot commited on
Commit
57baf4e
·
1 Parent(s): 45f1fb6
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -124,12 +124,12 @@ TG_BASE_URL = "https://tg.alist.dpdns.org/bot"
124
 
125
  ###################TG机器人功能区###################
126
  # 定义命令处理函数
127
- def start(update: Update, context):
128
- update.message.reply_text("你好!我是一个 FastAPI + Telegram 机器人!")
129
 
130
 
131
- def help(update: Update, context):
132
- update.message.reply_text("这是一个帮助信息!")
133
 
134
 
135
  @app.on_event("startup")
 
124
 
125
  ###################TG机器人功能区###################
126
  # 定义命令处理函数
127
+ async def start(update: Update, context):
128
+ await update.message.reply_text("你好!我是一个 FastAPI + Telegram 机器人!")
129
 
130
 
131
+ async def help(update: Update, context):
132
+ await update.message.reply_text("这是一个帮助信息!")
133
 
134
 
135
  @app.on_event("startup")