Update main.py
Browse files
main.py
CHANGED
|
@@ -660,7 +660,7 @@ async def help_command(update: Update, context: CallbackContext):
|
|
| 660 |
|
| 661 |
async def quota(update: Update, context: CallbackContext):
|
| 662 |
# Use message reference for potential edit
|
| 663 |
-
message_to_edit = await update.message.reply_text("⏳ 正在查询空间信息...", parse_mode=ParseMode.MARKDOWN_V2)
|
| 664 |
try:
|
| 665 |
quota_info = await THUNDERX_CLIENT.get_quota_info()
|
| 666 |
usage_str = quota_info.get('quota', {}).get('usage', '0')
|
|
@@ -704,7 +704,7 @@ async def quota(update: Update, context: CallbackContext):
|
|
| 704 |
|
| 705 |
|
| 706 |
async def tg_emptytrash(update: Update, context: CallbackContext):
|
| 707 |
-
message_to_edit = await update.message.reply_text("⏳ 正在尝试清空回收站...", parse_mode=ParseMode.MARKDOWN_V2)
|
| 708 |
try:
|
| 709 |
result = await THUNDERX_CLIENT.emptytrash()
|
| 710 |
if result and result.get("task_id"):
|
|
@@ -851,7 +851,7 @@ async def handle_copy_text(update: Update, context: CallbackContext):
|
|
| 851 |
|
| 852 |
#################### 分享操作 #############################
|
| 853 |
async def tg_show_shares(update: Update, context: CallbackContext):
|
| 854 |
-
message_to_edit = await update.message.reply_text("⏳ 正在获取分享列表...", parse_mode=ParseMode.MARKDOWN_V2)
|
| 855 |
try:
|
| 856 |
shares = await THUNDERX_CLIENT.get_share_list("")
|
| 857 |
keyboard = []
|
|
|
|
| 660 |
|
| 661 |
async def quota(update: Update, context: CallbackContext):
|
| 662 |
# Use message reference for potential edit
|
| 663 |
+
message_to_edit = await update.message.reply_text("⏳ 正在查询空间信息\.\.\.", parse_mode=ParseMode.MARKDOWN_V2)
|
| 664 |
try:
|
| 665 |
quota_info = await THUNDERX_CLIENT.get_quota_info()
|
| 666 |
usage_str = quota_info.get('quota', {}).get('usage', '0')
|
|
|
|
| 704 |
|
| 705 |
|
| 706 |
async def tg_emptytrash(update: Update, context: CallbackContext):
|
| 707 |
+
message_to_edit = await update.message.reply_text("⏳ 正在尝试清空回收站\.\.\.", parse_mode=ParseMode.MARKDOWN_V2)
|
| 708 |
try:
|
| 709 |
result = await THUNDERX_CLIENT.emptytrash()
|
| 710 |
if result and result.get("task_id"):
|
|
|
|
| 851 |
|
| 852 |
#################### 分享操作 #############################
|
| 853 |
async def tg_show_shares(update: Update, context: CallbackContext):
|
| 854 |
+
message_to_edit = await update.message.reply_text("⏳ 正在获取分享列表\.\.\.", parse_mode=ParseMode.MARKDOWN_V2)
|
| 855 |
try:
|
| 856 |
shares = await THUNDERX_CLIENT.get_share_list("")
|
| 857 |
keyboard = []
|