From 7a765ece393bc78b3626935fad3ac095859aa958 Mon Sep 17 00:00:00 2001 From: Simatwa Date: Sat, 4 May 2024 11:38:47 +0300 Subject: [PATCH] patch: Minor fix --- pytgpt_bot/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytgpt_bot/main.py b/pytgpt_bot/main.py index 14c3cdc..815bea2 100644 --- a/pytgpt_bot/main.py +++ b/pytgpt_bot/main.py @@ -438,7 +438,7 @@ async def check_current_settings(message: telebot.types.Message): chat = User(message).chat current_user_settings = ( f"Is Active : `{chat.is_active}`\n" - f"Chat Length : `{len(chat.history)}`\n" + f"Chat Length : `{len(chat.history) if chat.history else 0}`\n" f"Speech Voice : `{chat.voice}`\n" f"Chat Provider : `{chat.provider}`\n" f"Chat Intro : `{chat.intro}`"