From ed449ece9b942a2cee054318e2eb6e4a122c882e Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 8 Feb 2018 18:17:23 +0300 Subject: [PATCH] Add filename attribute to video files in albums (#19) --- pyrogram/client/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 37570786..b1fa0cb5 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2016,7 +2016,8 @@ class Client: duration=i.duration, w=i.width, h=i.height - ) + ), + types.DocumentAttributeFilename(os.path.basename(i.media)) ] ) )