From 00234f691c17f4ab4e2970da127fd2a6996bc630 Mon Sep 17 00:00:00 2001 From: grassblock Date: Fri, 12 Sep 2025 21:16:31 +0800 Subject: [PATCH] feat: add spaces to all texts in inline mode --- core/inline.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/core/inline.py b/core/inline.py index 72e12e7..266778b 100644 --- a/core/inline.py +++ b/core/inline.py @@ -293,8 +293,26 @@ async def handle_inline_query(query: InlineQuery): message_text="小娜😭", parse_mode=ParseMode.MARKDOWN ), - description="很抱歉,我还不能理解你说的内容。" - ) + description="很抱歉,我还不能理解你说的内容,但你可以试试:" + ), + InlineQueryResultArticle( + id="3", + title=f"全 部 加 上 空 格", + input_message_content=InputTextMessageContent( + message_text=" ".join(query_text), + parse_mode=ParseMode.MARKDOWN + ), + description="很臭的功能" + ), + InlineQueryResultArticle( + id="4", + title=f"命令列表", + input_message_content=InputTextMessageContent( + message_text=query_text, + parse_mode=ParseMode.MARKDOWN + ), + description="search, pg, anuo, 将军" + ), ], cache_time=0) return