diff --git a/maubot.yaml b/maubot.yaml index e936361..361a2ce 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -9,7 +9,7 @@ maubot: 0.1.0 id: casavant.tom.poll # A PEP 440 compliant version string. -version: 1.0.0 +version: 1.0.1 # The SPDX license identifier for the plugin. https://spdx.org/licenses/ # Optional, assumes all rights reserved if omitted. diff --git a/poll.py b/poll.py index c0736e2..39bd5ee 100644 --- a/poll.py +++ b/poll.py @@ -82,7 +82,7 @@ async def handler(self, evt: MessageEvent, poll_setup: str) -> None: ) response = f"{question}
{choice_list}" - await evt.reply(response, html_in_markdown=True) + await evt.reply(response, allow_html=True) @poll.subcommand("vote", help="Votes for an option") @command.argument( @@ -106,7 +106,7 @@ async def handler(self, evt: MessageEvent, choice: int) -> None: @poll.subcommand("results", help="Prints out the current results of the poll") async def handler(self, evt: MessageEvent) -> None: await evt.mark_read() - await evt.reply(self.currentPoll.get_results(), html_in_markdown=True) + await evt.reply(self.currentPoll.get_results(), allow_html=True) @poll.subcommand("close", help="Ends the poll") async def handler(self, evt: MessageEvent) -> None: