From a2d435b25f7603c53085c7082f64fd5597fe1152 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 8 Feb 2018 16:20:19 +0100 Subject: [PATCH] Add filename attribute for single videos --- 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 b1fa0cb5..cb1e52df 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -985,7 +985,8 @@ class Client: duration=duration, w=width, h=height - ) + ), + types.DocumentAttributeFilename(os.path.basename(video)) ] ), silent=disable_notification or None,