Beispiel #1
0
async def gspider(userbot):    
   lol = userbot ; sender = await lol.get_sender() ; me = await lol.client.get_me()
   if not sender.id == me.id:
        friday = await lol.reply("Ya Wait Let Me Process Your Request")
   else:
    	friday = await lol.edit("Hmm , Wait Let Me Process")   
   me = await userbot.client.get_me() ; await friday.edit(f"`Removing Duct Tape From Mouth !`") ; my_mention = "[{}](tg://user?id={})".format(me.first_name, me.id) ; my_username = f"@{me.username}" if me.username else my_mention ; chat = await userbot.get_chat() ; a = b = 0   
   try:
     from userbot.modules.sql_helper.globelmute_sql import unglobelmute
   except:
   	return
   if userbot.is_private:       
   	user = userbot.chat ; reason = userbot.pattern_match.group(1) ; chat_title = 'PM'  
   else:   	   	
   	chat_title = userbot.chat.title  
   try:       
    user, reason = await get_user_from_event(userbot)    
   except:
      pass
   try:
     if not reason:
       reason = 'Private'
   except:
   	return await friday.edit(f"**This Plugin Won't Work In Pvt Groups / Chats?**")
   if not user:       
       return await friday.edit(f" **Reply to a user To Ungmute !**")        
   try:
     if unglobelmute(user.id) is False:
            return await friday.edit(f"**Error! User probably already ungmuted.**")
   except:
    	pass
   return await friday.edit(f"`Ungmute Sucessfull`") 
Beispiel #2
0
async def gspider(rk):    
   lazy = rk ; sender = await lazy.get_sender() ; me = await lazy.client.get_me()
   if not sender.id == me.id:
        rkp = await lazy.reply("`processing...`")
   else:
    	rkp = await lazy.edit("`processing...`")   
   me = await rk.client.get_me() ; await rkp.edit(f"`ungmuting`") ; my_mention = "[{}](tg://user?id={})".format(me.first_name, me.id) ; my_username = f"@{me.username}" if me.username else my_mention ; chat = await rk.get_chat() ; a = b = 0   
   try:
     from userbot.modules.sql_helper.globelmute_sql import unglobelmute
   except:
   	return
   if rk.is_private:       
   	user = rk.chat ; reason = rk.pattern_match.group(1) ; chat_title = 'PM'  
   else:   	   	
   	chat_title = rk.chat.title  
   try:       
    user, reason = await get_user_from_event(rk)    
   except:
      pass
   try:
     if not reason:
       reason = 'Private'
   except:
   	return await rkp.edit(f"`{JAVES_NNAME}:`**Error! Unknown user.**")
   if not user:       
       return await rkp.edit(f"`{JAVES_NNAME}:` **Reply to a user !! **")        
   try:
     if unglobelmute(user.id) is False:
            return await rkp.edit(f"`{JAVES_NNAME}:`**Error! User probably already ungmuted.**")
   except:
    	pass
   return await rkp.edit(f"`Ungmuted`")