From fac8ca87137190f8a2a5173c4099a5f2d5ab4c36 Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Wed, 25 Dec 2024 23:05:00 +0800 Subject: [PATCH] insert! --- kmua/callbacks/image.py | 2 +- kmua/callbacks/quote.py | 2 +- kmua/callbacks/userdata.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kmua/callbacks/image.py b/kmua/callbacks/image.py index 20dfc25..c84f90a 100644 --- a/kmua/callbacks/image.py +++ b/kmua/callbacks/image.py @@ -35,7 +35,7 @@ async def super_resolute(update: Update, context: ContextTypes.DEFAULT_TYPE): if context.args: task_id = context.args[0] if not re.match(r"^\d+-\d+$", task_id): - await message.reply_text("请不要输入奇怪的东西") + await message.reply_text("请不要插入奇怪的东西") return if common.redis_client: file_id = common.redis_client.get(f"kmua_sr_{task_id}") diff --git a/kmua/callbacks/quote.py b/kmua/callbacks/quote.py index 062f6bf..ebc8322 100644 --- a/kmua/callbacks/quote.py +++ b/kmua/callbacks/quote.py @@ -156,7 +156,7 @@ async def set_quote_probability(update: Update, context: ContextTypes.DEFAULT_TY float_pattern = re.compile(r"^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$") value = context.args[0] if not float_pattern.match(value) or len(value) > 8: - await message.reply_text("请不要输入奇怪的东西> <") + await message.reply_text("请不要插入奇怪的东西> <") return try: probability = float(value) diff --git a/kmua/callbacks/userdata.py b/kmua/callbacks/userdata.py index 0843a44..1f48176 100644 --- a/kmua/callbacks/userdata.py +++ b/kmua/callbacks/userdata.py @@ -125,7 +125,7 @@ async def refresh_user_data_by_id(update: Update, context: ContextTypes.DEFAULT_ chat_id = context.args[0] if not re.match(r"^-?\d+$", chat_id): - await update.effective_message.reply_text("请不要输入奇怪的东西") + await update.effective_message.reply_text("请不要插入奇怪的东西") return user = update.effective_user