async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.NO_P_M_SPAM: if event.is_private: if is_approved(chat.id): disapprove(chat.id) await event.edit("Dissapproved PM")
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.NO_P_M_SPAM: if event.is_private: if is_approved(chat.id): disapprove(chat.id) await event.edit( f"I have denied [you](tg://user?id={chat.id}) to PM me.")
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("`PM's Blocked Successfully`") await asyncio.sleep(40)
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.NO_P_M_SPAM: if event.is_private: if is_approved(chat.id): disapprove(chat.id) await event.edit("███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ \n\nFuck Off Bitch, Now You Can't Message Me...") await asyncio.sleep(3) await borg(functions.contacts.BlockRequest(chat.id))
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("Blocked PM") await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id))
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.NO_P_M_SPAM: if event.is_private: if is_approved(chat.id): disapprove(chat.id) await event.edit("Blocked PM") await asyncio.sleep(3) await borg(functions.contacts.BlockRequest(chat.id))
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.NO_P_M_SPAM: if event.is_private: if is_approved(chat.id): disapprove(chat.id) await event.edit("You are blocked") await asyncio.sleep(3) await event.delete()
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ \n\nFuck Off Bitch, Now You Can't Message Me...") await asyncio.sleep(30) await borg(functions.contacts.BlockRequest(chat.id))
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.NO_P_M_SPAM: if event.is_private: if is_approved(chat.id): disapprove(chat.id) await event.edit(".................../´¯/) \n.................,/¯../ \n................/..../ \n........../´¯/'...'/´¯¯`·¸ \n....../'/.../..../......./¨¯\ \n.....('(...´...´.... ¯~/'...') \n......\.................'...../ \n.......''...\.......... _.·´ \n.........\..............( \n...........\.............\...\n\nFuck Off Bitch") await asyncio.sleep(3) await borg(functions.contacts.BlockRequest(chat.id))
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("[──███▅▄▄▄▄▄▄▄▄▄\n─██▐████████████\n▐█▀████████████▌▌\n▐─▀▀▀▐█▌▀▀███▀█─▌\n▐▄───▄█───▄█▌▄█](t.me/RoyalBoyPriyanshu) \n\n My Master Has disapproved You To PM him...") await asyncio.sleep(30) await event.delete()
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ \n\nYOU MESSAGED AND SPAMMED MY INBOX WITH MESSAGES AS A RESULT U ARE BLOCKED BY MY BOT .THIS IS A AUTOMATIC RESPONSE...") await asyncio.sleep(30) await borg(functions.contacts.BlockRequest(chat.id))
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ \n\nOhh, Now You Can't Message My Master cause you flooded His PM...") await asyncio.sleep(10) await borg(functions.contacts.BlockRequest(chat.id)) await event.edit("`For your Irriting Behaviour...\ni Blocked You..\nNow wait till my Master unblocks you`")
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.NO_P_M_SPAM: if event.is_private: if is_approved(chat.id): disapprove(chat.id) await event.edit( "IT: Fanculo puttanella, ora non puoi mandarmi messaggi.\n\nEN: F**k Off Bitch, Now You Can't Message Me." ) await asyncio.sleep(3) await borg(functions.contacts.BlockRequest(chat.id))
async def approve_p_m(event): if event.fwd_from: return reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("F**k Off Bitch, Now You Can't Message Me...") await asyncio.sleep(10) await borg(functions.contacts.BlockRequest(chat.id)) await event.edit( "`For your Irriting Behaviour...\nI Blocked You..\nNow Go To HELL`" )
async def approve_p_m(event): if event.fwd_from: return global replied_user replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name reason = event.pattern_match.group(1) chat = await event.get_chat() if Config.PM_LOGGR_BOT_API_ID is not None: if event.is_private: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit("Blocked User [{}](tg://user?id={})".format( firstname, chat.id)) await asyncio.sleep(3) await borg(functions.contacts.BlockRequest(chat.id))