Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Idk how even a message can't have chat type πŸ€”πŸ™„
  • Loading branch information
Phyco-Ninja authored and pull[bot] committed Aug 30, 2020
1 parent d1f75fb commit 68b3426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userge/plugins/utils/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def mv_to_global_note(message: Message) -> None:
check_client=True)
async def get_note(message: Message) -> None:
""" get any saved note """
if not (message.from_user or message.chat):
if not message.from_user:
return
if message.chat.id not in NOTES_DATA:
return
Expand Down

0 comments on commit 68b3426

Please sign in to comment.