Skip to content

Commit

Permalink
fixing replying msg edit in eval (UsergeTeam#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-Singhal authored Aug 10, 2021
1 parent 7cd3970 commit 395aa75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userge/plugins/tools/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def _callback(output: Optional[str], errored: bool):

msg = message
replied = message.reply_to_message
if (replied and isinstance(replied.text, Str)
if (replied and replied.from_user.is_self and isinstance(replied.text, Str)
and str(replied.text.html).startswith("<b>></b> <pre>")):
msg = replied

Expand Down

0 comments on commit 395aa75

Please sign in to comment.