Skip to content

Commit

Permalink
Fix sending plaintext captions to Telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 6, 2020
1 parent 64ddd07 commit 2c59cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/portal/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def _handle_matrix_file(self, sender_id: TelegramID, event_id: EventID,
if caption.formatted_body and caption.format == Format.HTML:
caption, entities = formatter.matrix_to_telegram(caption.formatted_body)
else:
caption, entities = formatter.matrix_text_to_telegram(content.body)
caption, entities = formatter.matrix_text_to_telegram(caption.body)
else:
caption, entities = None, None

Expand Down

0 comments on commit 2c59cb4

Please sign in to comment.