diff --git a/mautrix_telegram/portal_util/message_convert.py b/mautrix_telegram/portal_util/message_convert.py
index 680ddc78..fe2fbebb 100644
--- a/mautrix_telegram/portal_util/message_convert.py
+++ b/mautrix_telegram/portal_util/message_convert.py
@@ -763,18 +763,18 @@ class TelegramMessageConverter:
_n += 1
return _n
- text_answers = "\n".join(f"{n()}. {answer.text}" for answer in poll.answers)
- html_answers = "\n".join(f"
{answer.text}" for answer in poll.answers)
+ text_answers = "\n".join(f"{n()}. {answer.text.text}" for answer in poll.answers)
+ html_answers = "\n".join(f"{answer.text.text}" for answer in poll.answers)
vote_command = f"{self.command_prefix} vote {poll_id}"
content = TextMessageEventContent(
msgtype=MessageType.TEXT,
format=Format.HTML,
body=(
- f"Poll: {poll.question}\n{text_answers}\n"
+ f"Poll: {poll.question.text}\n{text_answers}\n"
f"Vote with {vote_command} "
),
formatted_body=(
- f"Poll: {poll.question}
\n"
+ f"Poll: {poll.question.text}
\n"
f"{html_answers}
\n"
f"Vote with {vote_command} <choice number>"
),