From 19bb441533230ea0a33f3c51d91ebb6000a926ec Mon Sep 17 00:00:00 2001 From: F4ria Date: Tue, 16 Apr 2024 14:15:12 +0800 Subject: [PATCH] url reader for chatgpt --- handlers/chatgpt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handlers/chatgpt.py b/handlers/chatgpt.py index f42d999..0b787f6 100644 --- a/handlers/chatgpt.py +++ b/handlers/chatgpt.py @@ -51,6 +51,7 @@ def chatgpt_handler(message: Message, bot: TeleBot) -> None: if m[:4].lower() == "new ": m = m[4:].strip() player_message.clear() + m = enrich_text_with_urls(m) who = "ChatGPT" # show something, make it more responsible @@ -112,6 +113,7 @@ def chatgpt_pro_handler(message: Message, bot: TeleBot) -> None: if m[:4].lower() == "new ": m = m[4:].strip() player_message.clear() + m = enrich_text_with_urls(m) who = "ChatGPT Pro" reply_id = bot_reply_first(message, who, bot)