Skip to content

Commit

Permalink
Update calladmin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
japarmar authored Mar 20, 2020
1 parent 7213c11 commit 02f6a5a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions userbot/plugins/calladmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
async def _(event):
if event.fwd_from:
return
reason = event.pattern_match.group(1)
if reason else "Spam Spotted"
input_str = event.pattern_match.group(1)
if input_str:
reason = input_str
else:
reason = "Spam Spotted"
mentions = "@admin: **{reason}**"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
Expand Down

0 comments on commit 02f6a5a

Please sign in to comment.