2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-01 14:55:12 +00:00

Make Message.new_chat_photo downloadable (#508)

Fixes #364
This commit is contained in:
GodSaveTheDoge
2020-10-18 17:54:03 +02:00
committed by GitHub
parent dadb4b4eb6
commit 00dd4bc403

View File

@@ -134,7 +134,7 @@ class DownloadMedia(Scaffold):
app.download_media(message, progress=progress)
"""
error_message = "This message doesn't contain any downloadable media"
available_media = ("audio", "document", "photo", "sticker", "animation", "video", "voice", "video_note")
available_media = ("audio", "document", "photo", "sticker", "animation", "video", "voice", "video_note", "new_chat_photo")
media_file_name = None
file_size = None