mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Add support for editing photos with external URLs
This commit is contained in:
parent
8d35559f0b
commit
a3be6a9355
@ -51,6 +51,10 @@ class EditMessageMedia(BaseClient):
|
|||||||
access_hash=media.photo.access_hash
|
access_hash=media.photo.access_hash
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
elif media.media.startswith("http"):
|
||||||
|
media = types.InputMediaPhotoExternal(
|
||||||
|
url=media.media
|
||||||
|
)
|
||||||
|
|
||||||
r = self.send(
|
r = self.send(
|
||||||
functions.messages.EditMessage(
|
functions.messages.EditMessage(
|
||||||
|
Loading…
Reference in New Issue
Block a user