Skip to content

Commit

Permalink
fix(/set_sub_limit): unable to set for group/channel
Browse files Browse the repository at this point in the history
Signed-off-by: Rongrong <i@rong.moe>
  • Loading branch information
Rongronggg9 committed Jun 11, 2023
1 parent a403035 commit 860cc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/administration.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async def cmd_set_sub_limit(event: Union[events.NewMessage.Event, Message], *_,
"""
command = `/set_sub_limit user_id sub_limit`
"""
args = parse_command(event.raw_text, strip_inline_header=True)
args = parse_command(event.raw_text, strip_target_chat=False, strip_inline_header=True)
if len(args) < 2 or not args[1].lstrip('-').isdecimal():
await event.respond(i18n[lang]['permission_denied_no_direct_use'] % '/user_info')
return
Expand Down

0 comments on commit 860cc30

Please sign in to comment.