From e49843029a59455de4008f32a8e0f218d97adfc8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 23 Aug 2020 23:52:26 +0200 Subject: [PATCH] Fix diario for Royalnet 5.11 --- royalpack/commands/diario.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/royalpack/commands/diario.py b/royalpack/commands/diario.py index 70000667..f3ed06dc 100644 --- a/royalpack/commands/diario.py +++ b/royalpack/commands/diario.py @@ -43,7 +43,7 @@ class DiarioCommand(rc.Command): if isinstance(self.serf, rst.TelegramSerf): message: telegram.Message = data.message reply: telegram.Message = message.reply_to_message - creator = await data.get_author() + creator = await data.find_author(session=session, required=True) # noinspection PyUnusedLocal quoted: Optional[str] # noinspection PyUnusedLocal @@ -154,7 +154,7 @@ class DiarioCommand(rc.Command): await data.reply(f"✅ {str(diario)}") else: # Find the creator of the quotes - creator = await data.get_author(error_if_none=True) + creator = await data.find_author(session=session, required=True) # Recreate the full sentence raw_text = " ".join(args) # Pass the sentence through the diario regex