From 45d76e902e72898e93dab7d7c5b943e44658f505 Mon Sep 17 00:00:00 2001 From: Lamroy95 Date: Sat, 25 Nov 2023 02:39:14 +0700 Subject: [PATCH] Add target filter condition --- app/services/find_target_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/find_target_user.py b/app/services/find_target_user.py index 5b6e0aad..90b79088 100644 --- a/app/services/find_target_user.py +++ b/app/services/find_target_user.py @@ -100,7 +100,7 @@ def get_mentioned_user(message: types.Message) -> dto.TargetUser | None: def get_replied_user(message: types.Message) -> dto.TargetUser | None: - if message.reply_to_message: + if message.reply_to_message and not message.reply_to_message.forum_topic_created: return dto.TargetUser.from_aiogram(message.reply_to_message.from_user) return None