Skip to content

Commit

Permalink
fix: bot not running on python 3.9 and older ones
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSuckz committed Feb 19, 2023
1 parent 344b21c commit 3feccc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebStreamer/utils/file_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_hash(media_msg: Union[str, Message], length: int) -> str:
return long_hash[:length]


def get_name(media_msg: Message | FileId) -> str:
def get_name(media_msg: Union[Message, FileId]) -> str:

if isinstance(media_msg, Message):
media = get_media_from_message(media_msg)
Expand Down

0 comments on commit 3feccc2

Please sign in to comment.