fix: command

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618
2024-06-20 15:18:29 +08:00
parent a0220fa8aa
commit 90fd74c403
3 changed files with 6 additions and 36 deletions

View File

@ -220,6 +220,7 @@ if CHATGPT_API_KEY:
bot.register_message_handler(
chatgpt_photo_handler,
content_types=["photo"],
func=lambda m: m.caption and m.caption.startswith(("gpt:", "/gpt")),
func=lambda m: m.caption
and m.caption.startswith(("gpt:", "/gpt", "gpt_pro:", "/gpt_pro")),
pass_bot=True,
)