Skip to content

Commit

Permalink
Merge pull request #143 from Lamroy95/fix-topic-reply-target
Browse files Browse the repository at this point in the history
Fix topic message reply target
  • Loading branch information
bomzheg authored Nov 27, 2023
2 parents 1b1e49f + 45d76e9 commit 56ed6b7
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 56ed6b7

Please sign in to comment.