v0.2 11/10/2021

Co-authored-by: New-dev0 <New-dev0@users.noreply.github.com>
Co-authored-by: Amit Sharma <buddhhu@users.noreply.github.com>
Co-authored-by: TechiError <techierror@users.noreply.github.com>
Co-authored-by: Aditya <me@xditya.me>
Co-authored-by: Sonya Nikiforova <Sonniki@users.noreply.github.com>
Co-authored-by: M̲αραт <Marty2509@users.noreply.github.com>
Co-authored-by: Muhamad Risman Aziz <mrismanaziz@users.noreply.github.com>
Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com>
Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com>
Co-authored-by: sppidy <sppidy@users.noreply.github.com>
This commit is contained in:
1Danish-00
2021-10-11 00:27:23 +05:30
parent 8f28387fb3
commit 6f44b386aa
165 changed files with 5537 additions and 4155 deletions

View File

@@ -7,17 +7,17 @@
"""
✘ Commands Available -
• `{i}lock <msgs/media/sticker/gif/games/inlines/polls/invites/pin/changeinfo>`
• `{i}lock <msgs/media/sticker/gif/games/inline/polls/invites/pin/changeinfo>`
Lock the Used Setting in Used Group.
• `{i}unlock <msgs/media/sticker/gif/games/inlines/polls/invites/pin/changeinfo>`
• `{i}unlock <msgs/media/sticker/gif/games/inline/polls/invites/pin/changeinfo>`
UNLOCK the Used Setting in Used Group.
"""
from pyUltroid.functions.all import lucks, unlucks
from pyUltroid.functions.admins import lock_unlock
from telethon.tl.functions.messages import EditChatDefaultBannedRightsRequest
from . import *
from . import eor, ultroid_cmd
@ultroid_cmd(
@@ -30,7 +30,7 @@ async def lockho(e):
mat = e.pattern_match.group(1)
if not mat:
return await eor(e, "`Give some Proper Input..`", time=5)
ml = lucks(mat)
ml = lock_unlock(mat)
if not ml:
return await eor(e, "`Incorrect Input`", time=5)
await e.client(EditChatDefaultBannedRightsRequest(e.chat_id, ml))
@@ -47,7 +47,7 @@ async def unlckho(e):
mat = e.pattern_match.group(1)
if not mat:
return await eor(e, "`Give some Proper Input..`", time=5)
ml = unlucks(mat)
ml = lock_unlock(mat, lock=False)
if not ml:
return await eor(e, "`Incorrect Input`", time=5)
await e.client(EditChatDefaultBannedRightsRequest(e.chat_id, ml))