Skip to content

Commit

Permalink
fix: fix order of positional args in bound method ask
Browse files Browse the repository at this point in the history
  • Loading branch information
usernein committed Oct 28, 2023
1 parent 18700d8 commit 6e05bd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyromod/listen/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyromod/listen/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6e05bd1

Please sign in to comment.