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)) ] ) )