Skip to content

Commit

Permalink
Update pmsecurity.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xditya authored Nov 6, 2020
1 parent 4485eed commit 68cedc9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions telebot/plugins/pmsecurity.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ async def you_dm_niqq(event):
if not pmpermit_sql.is_approved(chat.id):
if chat.id not in PM_WARNS:
pmpermit_sql.approve(chat.id, "outgoing")
bruh = "__Auto-approved coz outgoing 🚶‍♂️__"
rko = await borg.send_message(event.chat_id, bruh)
await asyncio.sleep(3)
await rko.delete()

chat = event.chat_id
logit = f"#Auto-Approved\n[User]({chat}): Approved"
try:
rko = await borg.send_message(PRIVATE_GROUP_ID, logit)
except:
return

@telebot.on(admin_cmd(pattern="block ?(.*)"))
async def approve_p_m(event):
Expand Down

0 comments on commit 68cedc9

Please sign in to comment.