Skip to content

Commit

Permalink
use is_multiuser() instead of is_group()
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jul 16, 2022
1 parent a97e587 commit 8144d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_logout(self, mocker, requests_mock) -> None:
def test_filter(self, mocker, requests_mock) -> None:
self._requests_mock(requests_mock)
for msg in mocker.get_replies("/login https://write.as token"):
if msg.chat.is_group():
if msg.chat.is_multiuser():
chat = msg.chat
break
msgs = mocker.get_replies("blog post", filters="simplebot_writefreely")
Expand Down

0 comments on commit 8144d22

Please sign in to comment.