From dd6be7abde50f0f4d330f8f33c8f26b55f1ee2ec Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 18 Feb 2025 23:18:56 +0100 Subject: [PATCH] Fix --- src/modules/stream_notifications/messages_proc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/stream_notifications/messages_proc.py b/src/modules/stream_notifications/messages_proc.py index 5c58866..fa600dd 100644 --- a/src/modules/stream_notifications/messages_proc.py +++ b/src/modules/stream_notifications/messages_proc.py @@ -161,7 +161,7 @@ class MessagesProc: try: completion = await get_completion( event.message.text.replace("!ai", "").strip(), - reply_to=event.reply.parent_message_body.replace("!ai", "").strip() if event.reply else None + reply_to=event.reply.parent_message_body.replace("!ai", "").strip() if event.reply is not None else None ) max_length = 255