From f917ee189d51f08842912246d0ea99de66b1af49 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 22 Jun 2022 12:29:38 +0300 Subject: [PATCH] Don't require puppeting for caption and config commands Fixes #790 --- mautrix_telegram/commands/portal/config.py | 1 + mautrix_telegram/commands/telegram/misc.py | 1 + 2 files changed, 2 insertions(+) diff --git a/mautrix_telegram/commands/portal/config.py b/mautrix_telegram/commands/portal/config.py index f805d4cf..6c903859 100644 --- a/mautrix_telegram/commands/portal/config.py +++ b/mautrix_telegram/commands/portal/config.py @@ -29,6 +29,7 @@ from .. import SECTION_PORTAL_MANAGEMENT, CommandEvent, command_handler @command_handler( needs_auth=False, + needs_puppeting=False, help_section=SECTION_PORTAL_MANAGEMENT, help_text="View or change per-portal settings.", help_args="<`help`|_subcommand_> [...]", diff --git a/mautrix_telegram/commands/telegram/misc.py b/mautrix_telegram/commands/telegram/misc.py index f0c141d5..f21f12ce 100644 --- a/mautrix_telegram/commands/telegram/misc.py +++ b/mautrix_telegram/commands/telegram/misc.py @@ -66,6 +66,7 @@ from ...types import TelegramID @command_handler( needs_auth=False, + needs_puppeting=False, help_section=SECTION_MISC, help_args="<_caption_>", help_text="Set a caption for the next image you send",