From 11ea15aa08fc423154596011ce61944aef368f90 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 28 Jul 2019 09:32:35 +0200 Subject: [PATCH] Fix yet another compatibility issue with Path objects and Python 3.5 --- pyrogram/client/methods/messages/download_media.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/methods/messages/download_media.py b/pyrogram/client/methods/messages/download_media.py index 46709ced..b00b7c72 100644 --- a/pyrogram/client/methods/messages/download_media.py +++ b/pyrogram/client/methods/messages/download_media.py @@ -214,7 +214,8 @@ class DownloadMedia(BaseClient): extension ) - self.download_queue.put((data, directory, file_name, done, progress, progress_args, path)) + # Cast to string because Path objects aren't supported by Python 3.5 + self.download_queue.put((data, str(directory), str(file_name), done, progress, progress_args, path)) if block: done.wait()