fix group_has_regex

This commit is contained in:
EyeZiS 2018-04-10 21:34:28 +02:00
parent 749019141d
commit 058bfc118d
Signed by untrusted user: kate
GPG Key ID: F17AECB58C3A3096
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def doit(chat_id, match, original):
async def group_has_regex(group): async def group_has_regex(group):
return any(getattr(x, 'username', None) == 'regexbot' 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) @borg.on(events.NewMessage)