async def oka(event): await event.edit("`Processing...`") args = event.pattern_match.group(1) if event.reply_to_msg_id: previous_message = await event.get_reply_message() user = await event.client.get_entity(previous_message.sender_id) elif args: userz = args if userz.isnumeric(): user = int(userz) else: try: userm = await event.client(GetFullUserRequest(userz)) user = userm.user.id except: await event.edit("<i>No User Found.</i>", parse_mode="HTML") return if not user: await event.edit("Reply To User Or Mention a User.") return try: sclient.unban(user) await borg.send_message("nospamplusfed", f"/unfban {user}") await event.edit(f"**User :** `{user}` \n**UnBanned Sucessfully !**") except Exception as e: await event.edit("**Errors : **" + str(e))
async def oka(event): await event.edit("`Processing...`") args = event.pattern_match.group(1) if event.reply_to_msg_id: previous_message = await event.get_reply_message() user = await event.client.get_entity(previous_message.sender_id) elif args: userz = args if userz.isnumeric(): user = int(userz) else: await event.edit("F**k, Gib ID") return if not user: await event.edit("Reply To User Or Mention a User.") return gensys2 = sclient.unban(user) await borg.send_message("antispamincfed", f"/unfban {user}") if gensys2["error"] == True: await event.edit("Error : " + gensys2["full"]) else: await event.edit(f"**User :** `{user}` \n**UnBanned Sucessfully !**")