Exemplo n.ยบ 1
0
 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)
                                    )
Exemplo n.ยบ 2
0
 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)
                                    )
Exemplo n.ยบ 3
0
 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)
                                    )
Exemplo n.ยบ 4
0
 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)
                                    )
Exemplo n.ยบ 5
0
 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)
                                    )
Exemplo n.ยบ 6
0
 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)
                                    )
Exemplo n.ยบ 7
0
 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)
                                    )
Exemplo n.ยบ 8
0
 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()
Exemplo n.ยบ 9
0
 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)
Exemplo n.ยบ 10
0
    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)
Exemplo n.ยบ 11
0
 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))
Exemplo n.ยบ 12
0
 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))
Exemplo n.ยบ 13
0
 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))
Exemplo n.ยบ 14
0
    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()
Exemplo n.ยบ 15
0
 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()
Exemplo n.ยบ 16
0
    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()
Exemplo n.ยบ 17
0
    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()
Exemplo n.ยบ 18
0
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))
Exemplo n.ยบ 19
0
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
Exemplo n.ยบ 20
0
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))
Exemplo n.ยบ 21
0
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))
Exemplo n.ยบ 22
0
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))
Exemplo n.ยบ 23
0
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
Exemplo n.ยบ 24
0
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))
Exemplo n.ยบ 26
0
                    "`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))
Exemplo n.ยบ 28
0
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))
Exemplo n.ยบ 29
0
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))
Exemplo n.ยบ 30
0
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))