From 6e05bd1d6371f428c6d9e2a922e93cc259d6fd5d Mon Sep 17 00:00:00 2001 From: Pauxis Date: Sat, 28 Oct 2023 20:14:50 -0300 Subject: [PATCH] fix: fix order of positional args in bound method ask --- pyromod/listen/chat.py | 2 +- pyromod/listen/user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyromod/listen/chat.py b/pyromod/listen/chat.py index 9610197..9dd5055 100644 --- a/pyromod/listen/chat.py +++ b/pyromod/listen/chat.py @@ -14,7 +14,7 @@ def listen(self, *args, **kwargs): @should_patch def ask(self, text, *args, **kwargs): - return self._client.ask(text, *args, chat_id=self.id, **kwargs) + return self._client.ask(self.id, text, *args, **kwargs) @should_patch def stop_listening(self, *args, **kwargs): diff --git a/pyromod/listen/user.py b/pyromod/listen/user.py index d68d789..19d6f50 100644 --- a/pyromod/listen/user.py +++ b/pyromod/listen/user.py @@ -14,7 +14,7 @@ def listen(self, *args, **kwargs): @should_patch def ask(self, text, *args, **kwargs): - return self._client.ask(text, *args, chat_id=self.id, user_id=self.id, **kwargs) + return self._client.ask(self.id, text, *args, user_id=self.id, **kwargs) @should_patch def stop_listening(self, *args, **kwargs):