url reader for chatgpt

This commit is contained in:
F4ria 2024-04-16 14:15:12 +08:00
parent a0e65d8bd9
commit 19bb441533

View File

@ -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)