From ffccd1d116838c3e0b72cdd0b43de6bef304bf68 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Fri, 29 Mar 2024 23:33:41 +0800 Subject: [PATCH] Update the full-angle character --- handlers/gemini.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/gemini.py b/handlers/gemini.py index fd8b722..888a896 100644 --- a/handlers/gemini.py +++ b/handlers/gemini.py @@ -69,7 +69,7 @@ def gemini_handler(message: Message, bot: TeleBot) -> None: gemini_reply_text = player.last.text.strip() # Gemini is often using ':' in **Title** which not work in Telegram Markdown gemini_reply_text = gemini_reply_text.replace(":**", "\:**") - gemini_reply_text = gemini_reply_text.replace(": **", "\:** ") + gemini_reply_text = gemini_reply_text.replace(":**", "\:**") except StopCandidateException as e: match = re.search(r'content\s*{\s*parts\s*{\s*text:\s*"([^"]+)"', str(e)) if match: