def copy(update, context): global mode mode = "copy" call_mode = update.effective_message.text if "/copy" == call_mode.strip()[:5]: update.effective_message.reply_text(mode_message().format( update.effective_user.first_name, "┋自定义目录┋")) return request_link(update, context) if update.callback_query.data == "copy": update.callback_query.edit_message_text(mode_message().format( update.effective_user.first_name, "┋自定义目录┋")) return request_link(update, context)
def quick(update, context): global mode mode = "quick" call_mode = update.effective_message.text if "/quick" == call_mode.strip()[:6]: update.effective_message.reply_text(mode_message().format( update.effective_user.first_name, "┋极速转存┋")) return request_link(update, context) if update.callback_query.data == "quick": update.callback_query.edit_message_text(mode_message().format( update.effective_user.first_name, "┋极速转存┋")) return request_link(update, context)