Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyrogram/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from configparser import ConfigParser
from hashlib import sha256, md5
from importlib import import_module
from pathlib import Path
from pathlib import Path, Pureapath
from signal import signal, SIGINT, SIGTERM, SIGABRT
from typing import Union, List, BinaryIO

Expand Down Expand Up @@ -1804,7 +1804,7 @@ async def worker(session):

part_size = 512 * 1024

if isinstance(path, str):
if isinstance(path, (str, PurePath)):
fp = open(path, "rb")
elif isinstance(path, io.IOBase):
fp = path
Expand Down