🐛 修复 post 插件部分函数未注册的问题

This commit is contained in:
洛水居室 2022-09-09 17:59:08 +08:00
parent e5553a8a04
commit b173c3e90d
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -234,9 +234,9 @@ class Post(Plugin.Conversation, BasePlugin):
await message.reply_text("请选择你的操作", reply_markup=self.MENU_KEYBOARD) await message.reply_text("请选择你的操作", reply_markup=self.MENU_KEYBOARD)
return CHECK_COMMAND return CHECK_COMMAND
@staticmethod @conversation.state(state=SEND_POST)
@error_callable @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") post_handler_data: PostHandlerData = context.chat_data.get("post_handler_data")
message = update.effective_message message = update.effective_message
if message.text == "退出": if message.text == "退出":