async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Si è verificato un errore!⚠️") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("**Rispondi ad un user per ungmute.**") chat_id = event.chat_id if not is_muted(userid, "gmute"): return await event.edit("**User non gmutato ⚠️**") try: unmute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("**Ok bro ungmute eseguito :)**")
async def muter(moot): """ Used for deleting the messages of muted people """ try: from userbot.plugins.sql_helper.mute_sql import is_muted from userbot.plugins.sql_helper.gmute_sql import is_gmuted except AttributeError: return muted = is_muted(moot.chat_id) gmuted = is_gmuted(moot.sender_id) rights = ChatBannedRights( until_date=None, send_messages=True, send_media=True, send_stickers=True, send_gifs=True, send_games=True, send_inline=True, embed_links=True, ) if muted: for i in muted: if str(i.sender) == str(moot.sender_id): await moot.delete() await moot.client( EditBannedRequest(moot.chat_id, moot.sender_id, rights)) for i in gmuted: if i.sender == str(moot.sender_id): await moot.delete()
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("⌔︙ حسنا عندما تريد الغاء الكتم ارسل (`.فتح كتم`) ♻️") await asyncio.sleep(3) private = True if any([x in event.raw_text for x in ("/unmute", "!unmute")]): await asyncio.sleep(0.5) else: reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("⌔︙ يرجى الرد على المستخدم 🔹") chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("⌔︙ ان هذا الشخص غير مكتوم 🚸") try: unmute(userid, chat_id) except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("⌔︙ تم فتح كتم المستخدم ✅")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("قد تحدث مشاكل غير متوقعة أو أخطاء قبيحة!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("يرجى الرد على مستخدم أو إضافته إلى الأمر لإلغاء كتمه.") chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("هذا المستخدم لم يتم كتم في هذه المحادثة") try: unmute(userid, chat_id) except Exception as e: await event.edit("حدث خطأ! n\ خطأ" + str(e)) else: await event.edit("تم إلغاء كتم هذا الشخص بنجاح")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("Please reply to a user or add their userid into the command to unmute them.") replied_user = await event.client(GetFullUserRequest(userid)) chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("__This user is not muted in this chat__\n( ^_^)o自自o(^_^ )") try: unmute(userid, chat_id) except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Successfully unmuted that person\n乁( ◔ ౪◔)「 ┑( ̄Д  ̄)┍") # Announce to logging group if BOTLOG: await event.client.send_message( BOTLOG_CHATID, "#UNMUTE\n" f"USER: [{replied_user.user.first_name}](tg://user?id={userid})\n" f"CHAT: {event.chat.title}(`{event.chat_id}`)")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit( "U CANT MESS UP WITH MY MASTER --SKYLORD IZZ HERE........!!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to gmute them." ) event.chat_id await event.get_chat() if is_muted(userid, "gmute"): return await event.edit("This user is already gmuted") try: mute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit( "U CANT MESS UP WITH MY MASTER --SKYLORD IZZ HERE........")
async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit( "Taking Out Dick from Son mouth....\n\n Today Sex Done😁 ") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to ungmute them." ) event.chat_id if not is_muted(userid, "fmute"): return await event.edit("This user is not gmuted") try: unmute(userid, "fmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Son Feeling Good..... Now speak🍆🍆")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Muting User Globally!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("`Reply To A Message!`") chat_id = event.chat_id chat = await event.get_chat() if is_muted(userid, "gmute"): return await event.edit( "`You Are Now Muted In All Groups Where I Am Admin.`") try: mute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("`You Are Now Muted In All Groups Where I Am Admin.`")
async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Removing Global Mute!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("`Reply To A Message!`") chat_id = event.chat_id if not is_muted(userid, "gmute"): return await event.edit("`You Can Speak Now!\nBut Be Careful!`") try: unmute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("`You Can Speak Now!\nBut Be Careful!`")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("**🔁 Caricamento ...**") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("**🔁 Caricamento ...**") chat_id = event.chat_id chat = await event.get_chat() if is_muted(userid, "gmute"): return await event.edit("**💭 Questo utente è già mutato!**") try: mute(userid, "gmute") except Exception as e: await event.edit("**❌ ERRORE!**\nℹ️ **Errore:** " + str(e)) else: await event.edit("**🔇 Utente mutato globalmente!**")
async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("**🔁 Caricamento ...**") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("**❌ Perfavore rispondi ad un messaggio.**") chat_id = event.chat_id if not is_muted(userid, "gmute"): return await event.edit("**🔊 Utente smutato correttamente!**") try: unmute(userid, "gmute") except Exception as e: await event.edit("**❌ ERRORE!**\nℹ️ **Errore:** " + str(e)) else: await event.edit("** 💭 Questo utente non è mutato!**")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit(f"**Si è verificato un errore!⚠️**") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit(f"**Rispondi ad un utente per il gmute.**") chat_id = event.chat_id chat = await event.get_chat() if is_muted(userid, "gmute"): return await event.edit(f"**User già gmutato ⚠️**") try: mute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit(f"**Utente mutato**")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("`Muting User Globally!`") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to gmute them." ) chat_id = event.chat_id chat = await event.get_chat() if is_muted(userid, "gmute"): return await event.edit("`User Is Already Gmuted!`") try: mute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit( "`You Are Muted In All The Chats Where I Am The Admin\nMessage Me To Get Yourself Unmuted!`" )
async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("`Removing Global Mute!`") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to ungmute them." ) chat_id = event.chat_id if not is_muted(userid, "gmute"): return await event.edit("`User Can Already Speak Freely!`") try: unmute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("`You Are Unmuted!\nPlease Be Careful Next Time!`")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Si è verificato un errore!⚠️") await asyncio.sleep(3) private = True if any([x in event.raw_text for x in ("/unmute", "!unmute")]): await asyncio.sleep(0.5) else: reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("**Rispondi ad un user o inserisci ID utente, nel comando unmute.**") chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("**__User non mutato in questa chat") try: unmute(userid, chat_id) except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit(" unmute eseguito")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to gmute them." ) event.chat_id await event.get_chat() if is_muted(userid, "gmute"): return await event.edit("`He has Tap Already On His Mouth.`") try: mute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Here A Tape, Now Shutup \nGmuteD")
async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit( "SKYLORD FELLING PITY ON U....\n\n SON TOLD SORRY.....LAST CHANCE DUDE " ) await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("Please reply to a user.......") event.chat_id if not is_muted(userid, "gmute"): return await event.edit("This user is not gmuted") try: unmute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("SKYLORD FORGIVED U....... TELL SORRY")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("`Unmuting User`") await asyncio.sleep(3) private = True if any([x in event.raw_text for x in ("/unmute", "!unmute")]): await asyncio.sleep(0.5) else: reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their user id into the command to unmute them." ) chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("`User Can Speak Freely Already!`") try: unmute(userid, chat_id) except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit( "`User Unmuted Successfully!`\nBe Careful Next Time")
async def endgmute(event): private = False if event.fwd_from: return if event.is_private: await event.reply("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.reply( "Please reply to a user or add their into the command to ungmute them." ) replied_user = await event.client(GetFullUserRequest(userid)) if not is_muted(userid, "gmute"): return await event.reply("This user is not gmuted") try: unmute(userid, "gmute") except Exception as e: await event.reply("Error occured!\nError is " + str(e)) else: await event.reply("Successfully ungmuted that person") if BOTLOG: await event.client.send_message( BOTLOG_CHATID, "#UNGMUTE\n" f"USER: [{replied_user.user.first_name}](tg://user?id={userid})\n" f"CHAT: {event.chat.title}(`{event.chat_id}`)", )
async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Ungmuting User...") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to ungmute them." ) event.chat_id if not is_muted(userid, "gmute"): return await event.edit("This user is not gmuted") try: unmute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("User Ungmuted!")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Putting Dick🍆 💦 In Son mouth!!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to fmute them." ) event.chat_id await event.get_chat() if is_muted(userid, "fmute"): return await event.edit("This user is already fmuted") try: mute(userid, "fmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Son Can't speek now.... Filled His Mouth With Cum😉")
async def cumshot(event): private = False if event.fwd_from: return elif event.is_private: await edit_or_reply(event, "Today's sex done. Now son can speak✌️🚶") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await edit_or_reply( event, "Please reply to a user or add them into the command to ungmute them." ) chat_id = event.chat_id if not is_muted(userid, "gmute"): return await edit_or_reply(event, "This user can already speak freely✌️😃") try: unmute(userid, "gmute") except Exception as e: await edit_or_reply(event, "Error occured!\nError is " + str(e)) else: await edit_or_reply(event, "Ok! Today's sex is done now. Son can speak🔥🔥")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True if any([x in event.raw_text for x in ("/unmute", "!unmute", "aunmute", "bunmute", "cunmute", "dunmute", "eunmute", "funmute", "gunmute", "hunmute", "iunmute", "junmute", "kunmute", "lunmute", "munmute", "nunmute", "ounmute", "punmute", "qunmute", "runmute", "sunmute", "tunmute", "uunmute", "vunmute", "wunmute", "xunmute", "yunmute", "zunmute" )]): await asyncio.sleep(0.5) else: reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("Please reply to a user or add their userid into the command to unmute them.") chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("__This user is not muted in this chat__\n( ^_^)o自自o(^_^ )") try: unmute(userid, chat_id) except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Haa Abb Boll Gandu\n乁( ◔ ౪◔)「 ┑( ̄Д  ̄)┍")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Perpiacere tagga con la @ del utente che vuoi mutare dopo .mute!") chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("**L'utente non è mutato deficente**") try: unmute(userid, chat_id) except Exception as e: await event.edit("Errore dio cane porcino\nl'errore è" + str(e)) else: await event.edit("**Cazzo perchè lo hai smutato rompeva le palle...**")
async def endgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Removed Duct Tape from that person's mouth!😐") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to ungmute them." ) chat_id = event.chat_id if not is_muted(userid, "gmute"): return await event.edit("Duct Tape is not on this user's mouth") try: unmute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit( "Successfully Removed Duct Tape from that person's mouth")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("**Attenzione utente mutato! xD**") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Perpiacere tagga con la @ del utente che vuoi mutare dopo .mute!") chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit( "**Madoooo che coglione sto utente è già mutato in questa chat!**") try: unmute(userid, chat_id) except Exception as e: await event.edit("Errore dio cane porcino\nl'errore è" + str(e)) else: await event.edit("**HAHHAHAH quel coglione è stato mutato!**")
async def endmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True if any([x in event.raw_text for x in ("/unmute", "!unmute")]): await asyncio.sleep(0.5) else: reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their userid into the command to unmute them." ) chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit( "__This user is not muted in this chat__\n( ^_^)o自自o(^_^ )") try: unmute(userid, chat_id) except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit( "Successfully unmuted that person\n乁( ◔ ౪◔)「 ┑( ̄Д  ̄)┍")
async def endmute(event): private = False if event.fwd_from: return if event.is_private: await event.edit("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit("Sir-g! kise unmute krna h bata to do username , ya replay kro uske msg pe.") replied_user = await event.client(GetFullUserRequest(userid)) chat_id = event.chat_id if not is_muted(userid, chat_id): return await event.edit("__Nah, Sir-g! Ye banda to mute nhi h__\n( ^_^)o自自o(^_^ )") try: unmute(userid, chat_id) except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Chalo thik h krlo Dil k baat, Krdiya unmute\n乁( ◔ ౪◔)「 ┑( ̄Д  ̄)┍") # Announce to logging group if BOTLOG: await event.client.send_message( BOTLOG_CHATID, "#UNMUTE\n" f"USER: [{replied_user.user.first_name}](tg://user?id={userid})\n" f"CHAT: {event.chat.title}(`{event.chat_id}`)")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Unexpected issues or ugly errors may occur!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to gmute them." ) chat_id = event.chat_id chat = await event.get_chat() if is_muted(userid, "gmute"): return await event.edit("This user is already gmuted") try: mute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Successfully gmuted that person")
async def startgmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Putting Duct Tape on that person's mouth!") await asyncio.sleep(3) private = True reply = await event.get_reply_message() if event.pattern_match.group(1) is not None: userid = event.pattern_match.group(1) elif reply is not None: userid = reply.sender_id elif private is True: userid = event.chat_id else: return await event.edit( "Please reply to a user or add their into the command to gmute them." ) chat_id = event.chat_id chat = await event.get_chat() if is_muted(userid, "gmute"): return await event.edit( "Duct Tape is already availabe on this user's mouth") try: mute(userid, "gmute") except Exception as e: await event.edit("Error occured!\nError is " + str(e)) else: await event.edit("Successfully putted Duct Tape on that person's mouth" )