mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
[Critical Bugs] toggle welcome only for admins
This commit is contained in:
parent
b2779e32fb
commit
261d27685b
1 changed files with 2 additions and 1 deletions
|
|
@ -165,7 +165,8 @@ async def member_has_joined(c: app, member: ChatMemberUpdated, strings):
|
|||
pass
|
||||
|
||||
|
||||
@app.on_message(filters.command("toggle_welcome") & filters.group)
|
||||
@app.on_cmd(["toggle_welcome"], self_admin=True, group_only=True)
|
||||
@app.adminsOnly("can_change_info")
|
||||
async def welcome_toggle_handler(client, message):
|
||||
chat_id = message.chat.id
|
||||
is_enabled = await toggle_welcome(chat_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue