Skip to content

Commit

Permalink
Support sending album with URL photos (#1681)
Browse files Browse the repository at this point in the history
Fixes #1408.
  • Loading branch information
y-young committed Jan 25, 2021
1 parent 65bf0e4 commit a886d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telethon/client/uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ async def _send_album(self: 'TelegramClient', entity, files, caption='',
fh, fm, _ = await self._file_to_media(
file, supports_streaming=supports_streaming,
force_document=force_document)
if isinstance(fm, types.InputMediaUploadedPhoto):
if isinstance(fm, (types.InputMediaUploadedPhoto, types.InputMediaPhotoExternal)):
r = await self(functions.messages.UploadMediaRequest(
entity, media=fm
))
Expand Down

0 comments on commit a886d60

Please sign in to comment.