Skip to content

Commit

Permalink
fix: deleting message no longer produces an error
Browse files Browse the repository at this point in the history
  • Loading branch information
vanutp committed Feb 25, 2023
1 parent c1ac624 commit ef317d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tgpy/reactions_fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def check_hash(message: Message) -> ReactionsFixResult:


def update_hash(message: Message, *, in_memory: bool = False) -> None:
if not message:
return
if in_memory:
in_memory_hashes[message.chat_id, message.id] = get_content_hash(message)
else:
Expand Down

0 comments on commit ef317d9

Please sign in to comment.