Skip to content

Commit

Permalink
Add target filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamroy95 committed Nov 24, 2023
1 parent e853bb3 commit 45d76e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/find_target_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 45d76e9

Please sign in to comment.