From 058bfc118d80cc13663d112a8291173aaba2f174 Mon Sep 17 00:00:00 2001 From: EyeZiS Date: Tue, 10 Apr 2018 21:34:28 +0200 Subject: [PATCH] fix group_has_regex --- stdplugins/re.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdplugins/re.py b/stdplugins/re.py index 53a753c..4b95b5e 100644 --- a/stdplugins/re.py +++ b/stdplugins/re.py @@ -55,7 +55,7 @@ def doit(chat_id, match, original): async def group_has_regex(group): return any(getattr(x, 'username', None) == 'regexbot' - async for x in borg.get_participants(group, search='@regexbot')) + for x in await borg.get_participants(group, search='@regexbot')) @borg.on(events.NewMessage)