Add support for editing photos with external URLs

This commit is contained in:
Dan 2018-08-03 18:38:04 +02:00
parent 8d35559f0b
commit a3be6a9355

View File

@ -51,6 +51,10 @@ class EditMessageMedia(BaseClient):
access_hash=media.photo.access_hash
)
)
elif media.media.startswith("http"):
media = types.InputMediaPhotoExternal(
url=media.media
)
r = self.send(
functions.messages.EditMessage(