mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Add support for editing photos with external URLs
This commit is contained in:
parent
8d35559f0b
commit
a3be6a9355
1 changed files with 4 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue