Skip to content

Commit

Permalink
Fix reply_to when sending albums
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Jul 24, 2023
1 parent 694c78c commit 211238f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion telethon/client/uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ async def _send_album(self: 'TelegramClient', entity, files, caption='',

# Now we can construct the multi-media request
request = functions.messages.SendMultiMediaRequest(
entity, reply_to=types.InputReplyToMessage(reply_to), multi_media=media,
entity, reply_to=None if reply_to is None else types.InputReplyToMessage(reply_to), multi_media=media,
silent=silent, schedule_date=schedule, clear_draft=clear_draft,
background=background
)
Expand Down
2 changes: 1 addition & 1 deletion telethon/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.29.1'
__version__ = '1.29.2'

0 comments on commit 211238f

Please sign in to comment.