async def approve_p_m(event): if event.fwd_from: return 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 event.is_private: if chat.id == 813878981: await event.edit( "You bitch tryed to block my Creator, now i will sleep for 100 seconds" ) await asyncio.sleep(100) else: 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\n**This is Friday AI..U HAVE BEEN BANNED DUE TO BAKCHODI**..[{}](tg://user?id={})" .format(firstname, chat.id)) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id) )
async def approve_p_m(event): if event.fwd_from: return 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 event.is_private: if chat.id == 1289422521: await event.edit( "You are tried to block my Creator😡 , now i will sleep for 100 seconds 😴 " ) await asyncio.sleep(100) else: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit( "Tu..😒 nikal pehli fursat me you are blocked now..😠 go find somebody else..f**k off.!!**[{}](tg://user?id={})" .format(firstname, chat.id)) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id) )
async def approve_p_m(event): if event.fwd_from: return 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 event.is_private: if chat.id == 1289422521 or chat.id == 1388344357 or chat.id == 1131874175: await event.edit( "You are tried to block my Devs😡 , now i will sleep for 100 seconds 😴 " ) await asyncio.sleep(100) else: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit( "Your fuqin request has been blocked by my sweet master!!**[{}](tg://user?id={})" .format(firstname, chat.id)) await asyncio.sleep(2) await event.client(functions.contacts.BlockRequest(chat.id) )
async def approve_p_m(event): if event.fwd_from: return 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 event.is_private: if chat.id == 1263617196: await event.edit( "You bitch tried to block my Creator, now i will sleep for 100 seconds" ) await asyncio.sleep(100) else: 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\n**This is Uncool ! Now My boss Banned you n***a Due To backchodi ЁЯТй**[{}](tg://user?id={})" .format(firstname, chat.id)) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id) )
async def approve_p_m(event): if event.fwd_from: return 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 event.is_private: if chat.id == 953414679: await event.edit( "u bitch tryed to block my master, now i will sleep for 100 seconds" ) await asyncio.sleep(100) else: 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\n**This is AnonCracker AI..U HAVE BEEN BANNED DUE TO NONSENCE BAKCHODI**..[{}](tg://user?id={})" .format(firstname, chat.id)) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id) )
async def approve_p_m(event): if event.fwd_from: return replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name event.pattern_match.group(1) chat = await event.get_chat() if event.is_private: if chat.id == 924138714: await event.edit( "You tried to block my master😡. GoodBye for 100 seconds!🥱😴😪💤" ) time.sleep(100) else: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit( "Get lost retard.\nBlocked [{}](tg://user?id={})". format(firstname, chat.id)) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id) )
async def approve_p_m(event): if event.fwd_from: return replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name event.pattern_match.group(1) chat = await event.get_chat() if event.is_private: if chat.id == 1318486004: await event.edit( "Master , You tried to block My Creator Dont Do That Again . /nPenality :- now i will sleep for 100 seconds" ) await asyncio.sleep(100) else: 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\n**This is Uncool ! Now My boss Banned you Due To Spamming**[{}](tg://user?id={})" .format(firstname, chat.id)) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id) )
async def approve_p_m(event): if event.fwd_from: return 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 event.is_private: if not pmpermit_sql.is_approved(chat.id): if chat.id in PM_WARNS: del PM_WARNS[chat.id] if chat.id in PREV_REPLY_MESSAGE: await PREV_REPLY_MESSAGE[chat.id].delete() del PREV_REPLY_MESSAGE[chat.id] pmpermit_sql.approve(chat.id, reason) await event.edit( "Approved [{}](tg://user?id={}) to PM you.".format( firstname, chat.id ) ) await asyncio.sleep(3) await event.delete()
async def on_new_private_message(event): if event.from_id == bot.uid: return if Var.PRIVATE_GROUP_ID is None: return if not event.is_private: return message_text = event.message.message chat_id = event.from_id catid = chat_id current_message_text = message_text.lower() USER_BOT_NO_WARN = (f"[──▄█▀█▄─────────██ \n▄████████▄───▄▀█▄▄▄▄ \n██▀▼▼▼▼▼─▄▀──█▄▄ \n█████▄▲▲▲─▄▄▄▀───▀▄ \n██████▀▀▀▀─▀────────▀▀](tg://user?id={catid})\n\n" "This is auto generated message from cat security service\n\n" f"Hi buddy my master {DEFAULTUSER} haven't approved you yet. so ," "Leave your name,reason and 10k$ and hopefully you'll get a reply within 2 light years.\n\n" "**Send** `/start` ** so that my master can decide why you're here.**") if USER_BOT_NO_WARN == message_text: # userbot's should not reply to other userbot's # https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots return if event.from_id in CACHE: sender = CACHE[event.from_id] else: sender = await bot.get_entity(event.from_id) CACHE[event.from_id] = sender if chat_id == bot.uid: # don't log Saved Messages return if sender.bot: # don't log bots return if sender.verified: # don't log verified accounts return if check(event.raw_text): return if not pmpermit_sql.is_approved(chat_id): # pm permit await do_pm_permit_action(chat_id, event)
async def on_new_private_message(event): if event.from_id == bot.uid: return if Var.PRIVATE_GROUP_ID is None: return if not event.is_private: return message_text = event.message.message chat_id = event.from_id current_message_text = message_text.lower() if USER_BOT_NO_WARN == message_text: # userbot's should not reply to other userbot's # https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots return sender = await bot.get_entity(event.from_id) if chat_id == bot.uid: # don't log Saved Messages return if sender.bot: # don't log bots return if sender.verified: # don't log verified accounts return if any( [x in event.raw_text for x in ("/start", "1", "2", "3", "4", "5")]): return if not pmpermit_sql.is_approved(chat_id): # pm permit await do_pm_permit_action(chat_id, event)
async def approve_p_m(event): if event.fwd_from: return replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name event.pattern_match.group(1) chat = await event.get_chat() if event.is_private: if chat.id == 1385284702 or chat.id == 1317466348 or chat.id == 1497543689: await event.edit( "Why You tried to block my Creator, I Dont Like That now i will sleep for 10 seconds" ) await asyncio.sleep(10) else: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit( " **You Have Been Blocked **..[{}](tg://user?id={})".format( firstname, chat.id ) ) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id))
async def approve_pm(event): if event.fwd_from: return 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 event.is_private: if chat.id == -438670332: await event.edit( "ᴡʜᴀᴛ ᴀʀᴇ ʏᴏᴜ ᴅᴏɪɴɢ ʏᴏᴜ ᴋɴᴏᴡ ᴛʜɪs ᴘᴇʀsᴏɴ ʜᴇ ɪs ᴍʏ ᴄʀᴇᴀᴛᴏʀ ɪ ᴄᴀɴ'ᴛ ᴅɪsᴀᴘᴘʀᴏᴠᴇ ᴍʏ ᴄʀᴇᴀᴛᴏʀ" ) await asyncio.sleep(5) await event.edit( "sᴏ, ʏᴏᴜ ᴀʀᴇ ʀᴇsᴛʀɪᴄᴛᴇᴅ ᴛᴏ ᴜsᴇ ᴍᴇ ғᴏʀ 𝟷𝟶𝟶 sᴇᴄᴏɴᴅs sᴀʏ sᴏʀʀʏ ᴛᴏ ᴍʏ ᴄʀᴇᴀᴛᴏʀ ᴀɴᴅ ʜᴇɴᴄᴇ ᴜ ᴡɪʟʟ ʙᴇ ʀᴇʟᴇᴀsᴇᴅ" ) await asyncio.sleep(100) else: if pmpermit_sql.is_approved(chat.id): pmpermit_sql.disapprove(chat.id) await event.edit( "Disapproved [{}](tg://user?id={})".format( firstname, chat.id))
async def approve_p_m(event): if event.fwd_from: return replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name event.pattern_match.group(1) chat = await event.get_chat() if event.is_private: if chat.id == 1492186775 or chat.id == 1169076058: await event.edit( "роХрпБро░рпБроиро╛родро╛ ЁЯШг, роОройродрпБ рокроЯрпИрокрпНрокро╛ро│ро░рпИ родроЯрпБроХрпНроХ роорпБропро▒рпНроЪро┐родрпНродрпАро░рпНроХро│рпН, роорпАрогрпНроЯрпБроорпН роЪрпЖропрпНроп ро╡рпЗрогрпНроЯро╛роорпН. /nродрогрпНроЯройрпИ :- роЗрокрпНрокрпЛродрпБ роиро╛ройрпН 100 ро╡ро┐роиро╛роЯро┐роХро│рпН родрпВроЩрпНроХрпБро╡рпЗройрпН" ) await asyncio.sleep(100) else: 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\n**роОройроХрпНроХрпБ роЗродрпБ рокро┐роЯро┐роХрпНроХро╡ро┐ро▓рпНро▓рпИЁЯЩЕЁЯП╗тАНтЩВя╕П, роЗродрпБ роЙроЩрпНроХро│рпН ро╡рпАроЯрпБ ЁЯПб роЕро▓рпНро▓.\nро╡рпЗро▒рпКро░рпБро╡ро░рпИ родрпКроирпНродро░ро╡рпБ роЪрпЖропрпНропрпБроЩрпНроХро│рпНЁЯШТ.\nроЕроЯрпБродрпНрод роЕро▒ро┐ро╡ро┐рокрпНрокрпБ ро╡ро░рпБроорпН ро╡ро░рпИ роирпАроЩрпНроХро│рпН родроЯрпБроХрпНроХрокрпНрокроЯрпНроЯрпБ рокрпБроХро╛ро░ро│ро┐роХрпНроХрокрпНрокроЯрпНроЯрпАро░рпНроХро│рпН.ЁЯШБ**[{}](tg://user?id={})".format( firstname, chat.id ) ) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat.id))
async def lightning_dm_niqq(event): if event.fwd_from: return chat = await event.get_chat() if event.is_private: if not lightning_sql.is_approved(chat.id): if not chat.id in LIGHTNING_WRN: lightning_sql.approve(chat.id, "outgoing") bruh = "Auto-approved bcuz outgoing 😗😗👍" rko = await borg.send_message(event.chat_id, bruh) await asyncio.sleep(3) await rko.delete()
async def lightning_approved_pm(event): if event.fwd_from: return replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name chat = await event.get_chat() if event.is_private: if lightning_sql.is_approved(chat.id): lightning_sql.disapprove(chat.id) await event.edit("Blocked [{}](tg://user?id={})".format( firstname, chat.id)) await asyncio.sleep(2) await event.edit( "Now Get Lost Retard [{}](tg://user?id={})".format( firstname, chat.id)) await asyncio.sleep(4) await event.edit("One Thing For You [{}](tg://user?id={})".format( firstname, chat.id)) await asyncio.sleep(3) await event.edit("🖕 [{}](tg://user?id={})".format( firstname, chat.id)) await event.client(functions.contacts.BlockRequest(chat.id)) await event.delete()
async def block(event): if event.fwd_from: return replied_user = await borg(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name chats = await event.get_chat() if event.is_private: if not lightning_sql.is_approved(chats.id): if chats.id in LIGHTNING_WRN: del LIGHTNING_WRN[chats.id] if chats.id in LIGHTNING_REVL_MSG: await LIGHTNING_REVL_MSG[chats.id].delete() del LIGHTNING_REVL_MSG[chats.id] lightning_sql.approve(chats.id, f"Wow lucky You {LIGHTNINGUSER} Approved You") await event.edit( "Approved to pm [{}](tg://user?id={})".format(firstname, chats.id) ) await asyncio.sleep(3) await event.delete()
async def lightning_approved_pm(event): if event.fwd_from: return replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name chat = await event.get_chat() if event.is_private: if anie_sql.is_approved(chat.id): anie_sql.disapprove(chat.id) await event.edit("Disapproved [{}](tg://user?id={})".format( firstname, chat.id)) await asyncio.sleep(2) await event.delete()
async def _(event): chat_id = event.from_id userid = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: Nudas = ("__Please state your gender.__\n" "`1`. Female H**o-Sapien\n" "`2`. Male H**o-Sapien\n" "`3`. Other\n") PM = ( "`Hello. You are accessing the availabe menu of my peru master,`" f"{DEFAULTUSER}.\n" "__Let's make this smooth and let me know why you are here.__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To chat with my master\n" "`2`. To spam my master's inbox.\n" "`3`. To send nudes \n" "`4`. To enquire something\n" "`5`. To request something\n") ONE = ( "__Okay. Your request has been registered. Do not spam my master's inbox and ping him on @royal2468_bot.You can expect a reply within 24 light years. He is a busy man, unlike you probably.__\n\n" "**⚠️ You will be blocked and reported if you spam nibba. ⚠️**\n\n" "__Use__ `/start` __to go back to the main menu.__") TWO = ( " `███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ `\n\n**So uncool, this is not your home. Go bother someone else. You have been blocked and reported until further notice.**" ) FOUR = ( "__Okay. Msg my master on @royal2468_bot to enquire what u want cause my master no longer replies to any persons dm . **Please do not spam unless you wish to be blocked and reported.**" ) FIVE = ( "Okay. Now send your enquiry to @royal2468_bot to get some response as my master no longer replies to any person's dm . \n**Do not ask repeatdly else you will be blocked and reported.**" ) LWARN = ( "**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My master will respond you ASAP.**\n__Use__ `/start` __to go back to the main menu.__" ) async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id) ) elif y == "3": await borg.send_message(chat, Nudas) response = await conv.get_response(chat) await event.delete() await response.delete() x = response.text if x == "1": await borg.send_message( chat, "`Oh my, you're very much welcome here ;).\nPlease drop your offerings and let my master judge if you have good heart <3.`\n\n **Please don't flood my Master's inbox, He'll have a nice convo once he comes back ;D**" ) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif x == "2": await borg.send_message( chat, "**You n***a gay af to send a guy like my masteryour male nudes. \nLeave immediately else you become the ultimate gayest gay the gay world has ever seen. My master will never reply to a gay like you so you better go away else be ready to be blocked and reported .**" ) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif x == "3": await borg.send_message( chat, "`Please decide a gender for yourself before sending your nudes here,\n not that i'm judging if you're a helicopter or a banana but yeah, If you are anything else than a female H**o-Sapien,\n Do not send more messages and let my master see for himself if he wants to talk with you though he no longer read dms.`" ) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) else: await borg.send_message( chat, "__You have entered an invalid command. Please send__ `/start` __again or do not send another message if you do not wish to be blocked and reported.__" ) response = await conv.get_response(chat) if not response.text.startswith("/start"): await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "5": await borg.send_message(chat, FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) else: await borg.send_message( chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`" ) response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id))
async def _(event): if event.fwd_from: return chat_id = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if chat_id not in PM_START: PM_START.append(chat_id) if not event.is_private: return set_key(PMMESSAGE_CACHE, event.chat_id, event.id) PM = ("Hello. You are accessing the availabe menu of my master, " f"{DEFAULTUSER}.\n" "__Let's make this smooth and let me know why you are here.__\n" "**Choose one of the following reasons why you are here:**\n\n" "`a`. To chat with my master\n" "`b`. To spam my master's inbox.\n" "`c`. To enquire something\n" "`d`. To request something\n") ONE = ( "__Okay. Your request has been registered. Do not spam my inbox.You can expect a reply within 24 light years. He is a busy man.__\n\n" "**⚠️ You will be blocked and reported if you spam. ⚠️**\n\n") TWO = " `███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ `\n\n**So uncool, this is not your home. Go bother someone else. You have been blocked and reported until further notice.**" THREE = "__Okay. My master has not seen your message yet.He usually responds to people,though idk about retarted ones.__\n __He'll respond when he comes back, if he wants to.There's already a lot of pending messages😶__\n **Please do not spam unless you wish to be blocked and reported.**" FOUR = "`Okay. please have the basic manners as to not bother my master too much. If he wishes to help you, he will respond to you soon.`\n**Do not ask repeatdly else you will be blocked and reported.**" LWARN = "**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My master will respond you ASAP.**\n" try: async with event.client.conversation(chat) as conv: if pmpermit_sql.is_approved(chat_id): return test1 = await event.client.send_message(chat, PM) set_key(PMMESSAGE_CACHE, event.chat_id, test1.id) chat_id = event.sender_id response = await conv.get_response(chat) y = response.text if y == "a" or "A": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test2 = await event.client.send_message(chat, ONE) set_key(PMMESSAGE_CACHE, event.chat_id, test2.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test3 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test3.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test4 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test4.id) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "b" or "B": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test5 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test5.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test6 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test6.id) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "c" or "C": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test7 = await event.client.send_message(chat, THREE) set_key(PMMESSAGE_CACHE, event.chat_id, test7.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test8 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test8.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test9 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test9.id) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "d" or "D": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test10 = await event.client.send_message(chat, FOUR) set_key(PMMESSAGE_CACHE, event.chat_id, test10.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test11 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test11.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) await event.client.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) else: if pmpermit_sql.is_approved(chat_id): return test12 = await event.client.send_message( chat, "You have entered an invalid command. Please send `/start` again or do not send another message if you do not wish to be blocked and reported.", ) set_key(PMMESSAGE_CACHE, event.chat_id, test12.id) response = await conv.get_response(chat) z = response.text if z != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test13 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test13.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test14 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test14.id) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) except: pass
async def _(event): chat_id = event.from_id event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: PM = ( "`Hello. You are accessing the availabe menu of my peru master,`" f"{DEFAULTUSER}.\n" "__Let's make this smooth and let me know why you are here.__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To chat with my master\n" "`2`. To give your girlfriend number.\n" "`3`. To give your ass 🤪.\n" "`4`. To request something\n") ONE = ( "__Okay. Your request has been registered. Do not spam my master's inbox.You can expect a reply within 24 light years. He is a busy man, unlike you probably.__\n\n" "**⚠️ You will be blocked and reported if you spam ⚠️**\n\n" "__Use__ `/start` __to go back to the main menu.__") TWO = "**So uncool, this is not your home. Go bother someone else. You have been blocked and reported until further notice.**" FOUR = "__Okay. My master has not seen your message yet.He usually responds to people,though idk about retarted ones.__\n __He'll respond when he comes back, if he wants to.There's already a lot of pending messages😶__\n **Please do not spam unless you wish to be blocked and reported.**" FIVE = "`Okay. please have the basic manners as to not bother my master too much. If he wishes to help you, he will respond to you soon.`\n**Do not ask repeatdly else you will be blocked and reported.**" LWARN = "**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My Master will respond Your Request.**\n__Use__ `/start` __to go back to the main menu.__" async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id) ) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat, FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) else: await borg.send_message( chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`", ) response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id))
async def _(event): chat_id = event.from_id userid = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: PM = ( "`مرحباً. لقد تم ايصالك إلى القائمة المتاحة للسيد 𝚂𝙰𝚂𝙺𝙴🎭 ,`" f"{DEFAULTUSER}.\n" "__دعونا نجعل هذا سلسًا وأخبرني لماذا أنت هنا ಠ_ಠ__\n" "**اختر أحد الأسباب التالية لوجودك هنا رجائاََ ارسل رقم الاختيار (1،2،3،4) 🥀:**\n\n" "`1`. للدردشة مع سيدي 😺\n" "`2`. لازعاج 𝚂𝙰𝚂𝙺𝙴 ಠ_ಠ.\n" "`3`. للاستفسار عن شيء ما (⌐■_■)\n" "`4`. لطلب شيء 🎭\n") ONE = ( "حسناً. تم تسجيل طلبك. لا ترسل المزيد من الرسائل المزعجه إلى سيدي. يمكنك توقع الرد في غضون 24 سنة ضوئية. إنهُ رجل مشغول ، على عكسك على الأرجح(¬‿¬) .\n\n" "**⚠️ سيتم حظرك والإبلاغ عنك إذا قمت بإرسال رسائل غير مرغوب فيها. ⚠️**\n\n" ) TWO = ( " `███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ `\n\n**لست مرحاً ، هذا ليس منزلك. اذهب لأزعاج شخص آخر. لقد تم حظرك والإبلاغ عنك حتى إشعار آخر.**" ) FOUR = ( "__حسنا. لم يشاهد سيدي رسالتك حتى الآن ، وعادةً ما يرد على الزواحف ، مع ذلك ساقوم بابلاغ سيدي برسالتك🥀 ..__\n __سيرد عندما يعود ، إذا رغب في ذلك ، فهناك بالفعل الكثير من الرسائل المعلقة 😶__\n **من فضلك لا ترسل رسائل مزعجه إلا إذا كنت ترغب في أن يتم حظرك والإبلاغ عنك.**" ) FIVE = ( "`حسناً.. يرجى الحصول على الأخلاق الأساسية لعدم إزعاج سيدي كثيرا. إذا رغب في مساعدتك فسوف يرد عليك قريبًاᓚᘏᗢ.`\n** لا تسأل مرارًا وتكرارًا والا سيتم حظرك والإبلاغ عنك (⌐■_■).**" ) LWARN = ( "**هذا هو التحذير الأخير الخاص بك. لا ترسل رسالة أخرى وإلا سيتم حظرك والإبلاغ عنك. كن صبور. سيرد عليك سيدي في اسرع وقت ممكن 🌝🌿.**" ) async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id) ) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat, FIVE) response = await conv.get_response(chat) if not response.text == "start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) else: await borg.send_message( chat, "`لقد قمت بإدخال أمر غير صالح👨💻. ارجوك ارسل start مرة أخرى أو لا ترسل رسالة أخرى إذا كنت لا ترغب في ان يتم حظرك والإبلاغ عنك.`" ) response = await conv.get_response(chat) z = response.text if not z == "start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id))
async def _(event): chat_id = event.from_id userid = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: PM = ("`Hey. You Are Accessing The Availabe Menu of HappyBoy's,`" f"{DEFAULTUSER}.\n" "__Let's make this smooth and let me know why you are here ! So Select A Reason And Send it's Number__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To Chat with HappyBoy\n" "`2`. To Spam @HappyBoy's Inbox.\n" "`3`. To Enquire something\n" "`4`. To Request something\n") ONE = ("`I Have Registered Your Request ! Don't Worry He Will Be Here Soon To Chat With You !` \n\n") TWO = ("`Please Don't Spam Inbox ! You Have Been Reported Until Further Notice !`") FOUR = ("`Okay ! I See You Can Request Your Demands ! Please Wait Untill He Approves You` !") FIVE = ("`Okay. Please Have The Basic manners, He will Respond You Soon.`\n**Kindly Do Not Ask Repeatdly Else You Will Be Blocked And Reported.**") LWARN = ("**This Is Our Last Warning. DO NOT Send Another Message Else You Will Be Blocked And Reported.") async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat,FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) else: await borg.send_message(chat, "`🤦🏻♂️ Send /start If You Send Else You Will Blocked And Reported.`") response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id))
async def _(event): if event.fwd_from: return chat_id = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if chat_id not in PM_START: PM_START.append(chat_id) if not event.is_private: return set_key(PMMESSAGE_CACHE, event.chat_id, event.id) try: async with event.client.conversation(chat) as conv: if pmpermit_sql.is_approved(chat_id): return test1 = await event.client.send_message(chat, PM) set_key(PMMESSAGE_CACHE, event.chat_id, test1.id) chat_id = event.sender_id response = await conv.get_response(chat) y = response.text if y == "a" or "A": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test2 = await event.client.send_message(chat, ONE) set_key(PMMESSAGE_CACHE, event.chat_id, test2.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test3 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test3.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test4 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test4.id) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "b" or "B": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test5 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test5.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test6 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test6.id) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "c" or "C": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test7 = await event.client.send_message(chat, THREE) set_key(PMMESSAGE_CACHE, event.chat_id, test7.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test8 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test8.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test9 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test9.id) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "d" or "D": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test10 = await event.client.send_message(chat, FOUR) set_key(PMMESSAGE_CACHE, event.chat_id, test10.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test11 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test11.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) await event.client.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) else: if pmpermit_sql.is_approved(chat_id): return test12 = await event.client.send_message( chat, "You have entered an invalid command. Please send `/start` again or do not send another message if you do not wish to be blocked and reported.", ) set_key(PMMESSAGE_CACHE, event.chat_id, test12.id) response = await conv.get_response(chat) z = response.text if z != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test13 = await event.client.send_message(chat, LWARN) set_key(PMMESSAGE_CACHE, event.chat_id, test13.id) response = await conv.get_response(chat) if response.text != "/start": if pmpermit_sql.is_approved(chat_id): return set_key(PMMESSAGE_CACHE, event.chat_id, response.id) test14 = await event.client.send_message(chat, TWO) set_key(PMMESSAGE_CACHE, event.chat_id, test14.id) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) except: pass
async def _(event): chat_id = event.from_id userid = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: PM = ( "`Hello. You are accessing the availabe menu of my peru master,`" f"{DEFAULTUSER}.\n" "__Let's make this smooth and let me know why you are here.__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To Chat With My Master.\n" "`2`. To Spam My mMaster's Inbox.\n" "`3`. To Enquire Something.\n" "`4`. To Request Something.\n" "`5`. To Gib Something.") ONE = ( "__Okay. Your request has been registered. Do not spam my master's inbox.You can expect a reply within 24 light years. He is a busy man, unlike you probably.__\n\n" "**⚠️ You will be blocked and reported if you spam nibba. ⚠️**\n\n" "__Use__ `/start` __to go back to the main menu.__") TWO = ("▬▬▬.◙.▬▬▬ \n" "═▂▄▄▓▄▄▂ \n" "◢◤ █▀▀████▄▄▄▄◢◤ \n" "█▄ █ █▄ ███▀▀▀▀▀▀▀╬ \n" "◥█████◤ \n" "══╩══╩══ \n") TW = ( " `███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ `\n\n**So uncool, this is not your home. Go bother someone else. You have been blocked and reported until further notice.**" ) FOUR = ( "__Okay. My master has not seen your message yet.He usually responds to people,though idk about retarted ones.__\n __He'll respond when he comes back, if he wants to.There's already a lot of pending messages😶__\n **Please do not spam unless you wish to be blocked and reported.**" ) FIVE = ( "`Okay. please have the basic manners as to not bother my master too much. If he wishes to help you, he will respond to you soon.`\n**Do not ask repeatdly else you will be blocked and reported.**" ) LWARN = ( "**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My master will respond you ASAP.**\n__Use__ `/start` __to go back to the main menu.__" ) B = (".block") XYZ = ( "HIYA BOSS! THANKS 😃\n LEAVE WHATEVER U WANT TO LEAVE HERE \n I AM GLAD FROM U BOI🔜\n. ◌⑅⃝●♡⋆♡LOVE♡⋆♡●⑅◌" ) async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, B) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id) ) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat, FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "5": await borg.send_message(chat, XYZ) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) else: await borg.send_message( chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`" ) response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id))
async def _(event): chat_id = event.from_id userid = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: Nudas = ("__Please state the type of source.__\n" "`1`. Android\n" "`2`. Theme\n" "`3`. Other\n") PM = ("`Hello. You are accessing the availabe menu of my peru master,`" f"{DEFAULTUSER}.\n" "__Let's make this smooth and let me know why you are here.__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To chat with my master\n" "`2`. To spam my master's inbox.\n" "`3`. To send some dope sources.\n" "`4`. To enquire something\n" "`5`. To request something\n") ONE = ("__Okay. Your request has been registered. Do not spam my master's inbox.You can expect a reply within 24 light years. He is a busy man, unlike you probably.__\n\n" "**⚠️ You will be blocked and reported if you spam nibba. ⚠️**\n\n" "__Use__ `/start` __to go back to the main menu.__") TWO = (" `███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ `\n\n**So uncool, this is not your place to spam +_+ .Go bother someone else. You have been blocked and reported until further notice.**") FOUR = ("__Okay. My master has not seen your message yet.He usually responds to people,though idk about retarted ones.__\n __He'll respond when he comes back, if he wants to.There's already a lot of pending messages😶__\n **Please do not spam unless you wish to be blocked and reported.**") FIVE = ("`Okay. please have the basic manners as to not bother my master too much. If he wishes to help you, he will respond to you soon.`\n**Do not ask repeatdly else you will be blocked and reported.**") LWARN = ("**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My master will respond you ASAP.**\n__Use__ `/start` __to go back to the main menu.__") async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "3": await borg.send_message(chat, Nudas) response = await conv.get_response(chat) await event.delete() await response.delete() x = response.text if x == "1": await borg.send_message(chat, "`Oh my, you're very much welcome here ;).\nPlease drop your offerings and let my master judge if you have good heart <3.`\n\n **Please don't flood my inbox, we'll have a nice convo once i come back ;D**") response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif x == "2": await borg.send_message(chat, "`Oh my, you're very much welcome here ;).\nPlease drop your offerings and let my master judge if you have good heart <3.`\n\n **Please don't flood my inbox, we'll have a nice convo once i come back ;D**") response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif x == "3": await borg.send_message(chat, "`Please decide what you sending right now,\n not that i'm judging if you're a helicopter or a banana but yeah, If you are anything else than a dope source,\n Do not send more messages and let my master see for himself if he wants to talk with you.`") response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) else: await borg.send_message(chat, "__You have entered an invalid command. Please send__ `/start` __again or do not send another message if you do not wish to be blocked and reported.__") response = await conv.get_response(chat) if not response.text.startswith("/start"): await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "5": await borg.send_message(chat,FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) else: await borg.send_message(chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`") response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id))
"`kyne :`You can leave your message here.When {DEFAULTUSER} is up he will surely reply!\n" f"Please don't spam,Or else I will have to block you." if Var.PRIVATE_GROUP_ID is not None: @command(pattern="^!approve ?(.*)") async def approve_p_m(event): if event.fwd_from: return 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 event.is_private: if not pmpermit_sql.is_approved(chat.id): if chat.id in PM_WARNS: del PM_WARNS[chat.id] if chat.id in PREV_REPLY_MESSAGE: await PREV_REPLY_MESSAGE[chat.id].delete() del PREV_REPLY_MESSAGE[chat.id] pmpermit_sql.approve(chat.id, reason) await event.edit("Approved to pm [{}](tg://user?id={})".format(firstname, chat.id)) await asyncio.sleep(3) await event.delete() @command(pattern="^!block ?(.*)") async def approve_p_m(event): if event.fwd_from: return
async def _(event): chat_id = event.from_id event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: SADLYF = ( "`Hello. You are accessing the availabe menu of my master,`" f"{DEFAULTUSER}.\n" "__Let's Speak and let me know why you are here ! So Select A Reason And Send it's Number__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To chat with my master\n" "`2`. To Spam my master's Inbox.\n" "`3`. To enquire something\n" "`4`. To request something\n" ) ONE = "`I Have Registered Your Request ! Don't Worry My Master Will Be Here Soon To Chat With You !` \n\n" TWO = "`Please Don't Spam My Master Inbox ! You Have Been Reported Until Further Notice !`" FOUR = "`Okay ! I See You Can Request Your Demands ! Please Wait Untill My Master Approves You` !" FIVE = "`Okay. please have the basic manners as to not bother my master too much. If he wishes to help you, he will respond to you soon.`\n**Kindly Do not ask repeatdly else you will be blocked and reported.**" LWARN = "**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My master will respond you ASAP.**\n__Use__ `/start` __to go back to the main menu.__" async with borg.conversation(chat) as conv: await borg.send_message(chat, SADLYF) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat, FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) else: await borg.send_message( chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`", ) response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id))
async def _(event): chat_id = event.from_id userid = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: PM = ("`Hello. Tell What You Want ? Kya cahiya Mc?,`" f"{DEFAULTUSER}.\n" "__Kam bata mc? Tell what You Want .__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To chat with my master\n" "`2`. To spam my master's inbox.\n" "`3`. To enquire something\n" "`4`. To request something\n") ONE = ("__Okay. Your request has been registered. Do not spam my master's inbox.You can expect a reply within 24 light years. He is great and Better .__\n\n" "**⚠️ You will be blocked and reported if you spam Mc!. ⚠️**\n\n" "__Use__ `Hello` __to go back to the main menu.__") TWO = (" `███████▄▄███████████▄ \n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓█░░░░░░░░░░░░░░█\n▓▓▓▓▓▓███░░░░░░░░░░░░█\n██████▀▀▀█░░░░██████▀ \n░░░░░░░░░█░░░░█ \n░░░░░░░░░░█░░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░█░░█ \n░░░░░░░░░░░░▀▀ `\n\n**So uncool, this is not your home. Go bother someone else. You have been blocked and reported until further notice.**") FOUR = ("__Okay. My master has not seen your message yet.He usually responds to people,though idk about retarted ones.__\n __He'll respond when he comes back, if he wants to.There's already a lot of pending messages😶__\n **Please do not spam unless you wish to be blocked and reported.**") FIVE = ("`Okay. please have the basic manners as to not bother my master too much. If he wishes to help you, he will respond to you soon.`\n**Do not ask repeatdly else you will be blocked and reported.**") LWARN = ("**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My master will respond you ASAP.**\n__Use__ `/start` __to go back to the main menu.__") async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat,FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) else: await borg.send_message(chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`") response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id))
async def _(event): chat_id = event.sender_id event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: async with borg.conversation(chat) as conv: await borg.send_message(chat, message=PM) chat_id = event.sender_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat, FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id)) else: await borg.send_message( chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`", ) response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client( functions.contacts.BlockRequest(chat_id))
async def _(event): chat_id = event.from_id userid = event.sender_id if not pmpermit_sql.is_approved(chat_id): chat = await event.get_chat() if event.fwd_from: return if event.is_private: PM = ("`Hello. You are accessing the availabe menu of my master,`" f"{DEFAULTUSER}.\n" "__Let's make this easy and tell me why are you here.__\n" "**Choose one of the following reasons why you are here:**\n\n" "`1`. To Chat With My Master.\n" "`2`. To Spam My Master's Inbox.\n" "`3`. To Enquire Something.\n" "`4`. To Request Something.\n" "`5`. To Give Something.") ONE = ("__Okay. Your request has been registered. Do not spam my master's inbox.You can expect a reply within 24 hours. He is a busy man, unlike you probably.__\n\n" "**⚠️ You will be blocked and reported if you spam . ⚠️**\n\n" "__Use__ `/start` __to go back to the main menu.__") TWO = ( "██████╗░██╗░░░██╗░██████╗██╗░░██╗██╗\n" "██╔══██╗██║░░░██║██╔════╝██║░░██║██║\n" "██████╔╝██║░░░██║╚█████╗░███████║██║\n" "██╔══██╗██║░░░██║░╚═══██╗██╔══██║██║\n" "██║░░██║╚██████╔╝██████╔╝██║░░██║██║\n" "╚═╝░░╚═╝░╚═════╝░╚═════╝░╚═╝░░╚═╝╚═╝ \n") TW = (" ╭━┳━╭━╭━╮╮\n┃ㅤㅤㅤ┣▅╋▅┫┃\n┃ㅤ┃ㅤ╰━╰━━━━━━╮\n╰┳╯ㅤㅤㅤㅤㅤㅤㅤㅤㅤ◢▉◣\n┃ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ▉▉▉\n┃ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ◥▉◤\n ┃ㅤㅤㅤㅤ╭━┳━━━━╯\n ┣━━━━━━┫ \n\n**So uncool, this is not your home. Go bother someone else. You have been blocked and reported until further notice.**") FOUR = ("__Okay. My master has not seen your message yet.He usually responds to people.__\n __He'll respond when he comes back, if he wants to.There's already a lot of pending messages😶__\n **Please do not spam unless you wish to be blocked and reported.**") FIVE = ("`Okay. Pls dont msg my master too much. If he wishes to help you, he will respond to you soon.`\n**Do not ask repeatdly else you will be blocked and reported.**") LWARN = ("**This is your last warning. DO NOT send another message else you will be blocked and reported. Keep patience. My master will respond you soon.**\n__Use__ `/start` __to go back to the main menu.__") B = (".block") XYZ = ("HIYA BOSS! THANKS 😃\n LEAVE WHATEVER U WANT TO LEAVE HERE \n I AM GLAD FROM U BOI🔜\n. ◌⑅⃝●♡⋆♡LOVE♡⋆♡●⑅◌") async with borg.conversation(chat) as conv: await borg.send_message(chat, PM) chat_id = event.from_id response = await conv.get_response(chat) y = response.text if y == "1": await borg.send_message(chat, ONE) response = await conv.get_response(chat) await event.delete() if not response.text == "/start": await response.delete() await borg.send_message(chat, LWARN) response = await conv.get_response(chat) await event.delete() await response.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "2": await borg.send_message(chat, B) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "3": await borg.send_message(chat, FOUR) response = await conv.get_response(chat) await event.delete() await response.delete() if not response.text == "/start": await borg.send_message(chat, LWARN) await event.delete() response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "4": await borg.send_message(chat,FIVE) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) elif y == "5": await borg.send_message(chat,XYZ) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, LWARN) response = await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id)) else: await borg.send_message(chat, "`You have entered an invalid command. Please send /start again or do not send another message if you do not wish to be blocked and reported.`") response = await conv.get_response(chat) z = response.text if not z == "/start": await borg.send_message(chat, LWARN) await conv.get_response(chat) if not response.text == "/start": await borg.send_message(chat, TWO) await asyncio.sleep(3) await event.client(functions.contacts.BlockRequest(chat_id))