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))