bot
commited on
Commit
·
8d331b1
1
Parent(s):
3399f02
test
Browse files
main.py
CHANGED
@@ -144,26 +144,28 @@ TG_BASE_URL = "https://tg.alist.dpdns.org/bot"
|
|
144 |
# 定义命令处理函数
|
145 |
async def start(update: Update, context):
|
146 |
commands = (
|
147 |
-
"
|
148 |
-
"
|
149 |
-
"
|
150 |
-
"
|
151 |
-
"
|
152 |
-
"
|
153 |
-
"
|
|
|
154 |
)
|
155 |
await update.message.reply_text(commands)
|
156 |
|
157 |
|
158 |
async def help(update: Update, context):
|
159 |
commands = (
|
160 |
-
"
|
161 |
-
"
|
162 |
-
"
|
163 |
-
"
|
164 |
-
"
|
165 |
-
"
|
166 |
-
"
|
|
|
167 |
)
|
168 |
await update.message.reply_text(commands)
|
169 |
|
@@ -187,6 +189,7 @@ async def quota(update: Update, context):
|
|
187 |
}
|
188 |
"""
|
189 |
quota_info = await THUNDERX_CLIENT.get_quota_info()
|
|
|
190 |
if quota_info["quota"]["usage"] is None:
|
191 |
await update.message.reply_text("未找到使用信息,请稍后再试!")
|
192 |
else:
|
|
|
144 |
# 定义命令处理函数
|
145 |
async def start(update: Update, context):
|
146 |
commands = (
|
147 |
+
"🚀欢迎使用我的机器人!\n\n"
|
148 |
+
"📋可用命令:\n"
|
149 |
+
"•直接发送magent:开的关磁力将直接离线下载\n"
|
150 |
+
"•/tasks - 查看下载任务\n"
|
151 |
+
"•/files - 查看文件列表\n"
|
152 |
+
"•/quota - 查看存储空间\n"
|
153 |
+
"•/emptytrash - 清空回收站\n"
|
154 |
+
"•/help - 获取帮助信息\n"
|
155 |
)
|
156 |
await update.message.reply_text(commands)
|
157 |
|
158 |
|
159 |
async def help(update: Update, context):
|
160 |
commands = (
|
161 |
+
"🚀欢迎使用我的机器人!\n\n"
|
162 |
+
"📋可用命令:\n"
|
163 |
+
"•直接发送magent:开的关磁力将直接离线下载\n"
|
164 |
+
"•/tasks - 查看下载任务\n"
|
165 |
+
"•/files - 查看文件列表\n"
|
166 |
+
"•/quota - 查看存储空间\n"
|
167 |
+
"•/emptytrash - 清空回收站\n"
|
168 |
+
"•/help - 获取帮助信息\n"
|
169 |
)
|
170 |
await update.message.reply_text(commands)
|
171 |
|
|
|
189 |
}
|
190 |
"""
|
191 |
quota_info = await THUNDERX_CLIENT.get_quota_info()
|
192 |
+
print(quota_info)
|
193 |
if quota_info["quota"]["usage"] is None:
|
194 |
await update.message.reply_text("未找到使用信息,请稍后再试!")
|
195 |
else:
|