Skip to content

Commit

Permalink
Fix error if has caption
Browse files Browse the repository at this point in the history
  • Loading branch information
annndruha committed Apr 8, 2024
1 parent c147a07 commit 0bbdc83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/issue_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def get_github_body(update):
link_to_msg = TgIssueMessage.get_link_to_telegram_message(update)
if update.effective_message.reply_to_message.text_markdown_v2 is not None:
text = update.effective_message.reply_to_message.text_markdown_v2
elif update.effective_message.reply_to_message.caption_html is not None:
text = update.effective_message.reply_to_message.text_markdown_v2
elif update.effective_message.reply_to_message.caption_markdown_v2 is not None:
text = update.effective_message.reply_to_message.caption_markdown_v2
else:
return link_to_msg

Expand Down

0 comments on commit 0bbdc83

Please sign in to comment.