bot
commited on
Commit
·
3399f02
1
Parent(s):
44537f3
Fix
Browse files
main.py
CHANGED
@@ -187,11 +187,11 @@ async def quota(update: Update, context):
|
|
187 |
}
|
188 |
"""
|
189 |
quota_info = await THUNDERX_CLIENT.get_quota_info()
|
190 |
-
if quota_info["usage"] is None:
|
191 |
await update.message.reply_text("未找到使用信息,请稍后再试!")
|
192 |
else:
|
193 |
await update.message.reply_text(
|
194 |
-
f"使用信息:\n{format_bytes(quota_info['limit'])}/{format_bytes(quota_info['usage'])}\n到期时间:\n{quota_info['expires_at']}"
|
195 |
)
|
196 |
|
197 |
|
|
|
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:
|
193 |
await update.message.reply_text(
|
194 |
+
f"使用信息:\n{format_bytes(quota_info["quota"]['limit'])}/{format_bytes(quota_info["quota"]['usage'])}\n到期时间:\n{quota_info['expires_at']}"
|
195 |
)
|
196 |
|
197 |
|