From b173c3e90dad68ae62d8e5d6a4bf0d1ad870febc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Fri, 9 Sep 2022 17:59:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20`post`=20?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E9=83=A8=E5=88=86=E5=87=BD=E6=95=B0=E6=9C=AA?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/other/post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/other/post.py b/plugins/other/post.py index 513e42e2..92c47b42 100644 --- a/plugins/other/post.py +++ b/plugins/other/post.py @@ -234,9 +234,9 @@ class Post(Plugin.Conversation, BasePlugin): await message.reply_text("请选择你的操作", reply_markup=self.MENU_KEYBOARD) return CHECK_COMMAND - @staticmethod + @conversation.state(state=SEND_POST) @error_callable - async def send_post(update: Update, context: CallbackContext) -> int: + async def send_post(self, update: Update, context: CallbackContext) -> int: post_handler_data: PostHandlerData = context.chat_data.get("post_handler_data") message = update.effective_message if message.text == "退出":