From 67da28f80b1ddfae75fad7b2050f64e0aa58bd3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=BC=BA=CE=B1=D0=B8=CF=85=D0=B2=CE=B9=D1=95=E0=BC=BB?= <54077356+Dark-Princ3@users.noreply.github.com> Date: Mon, 20 Jan 2020 15:49:30 +0530 Subject: [PATCH] Update pmpermit_menu.py --- userbot/plugins/pmpermit_menu.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/userbot/plugins/pmpermit_menu.py b/userbot/plugins/pmpermit_menu.py index ea44d97a0..7edd1c6d3 100644 --- a/userbot/plugins/pmpermit_menu.py +++ b/userbot/plugins/pmpermit_menu.py @@ -55,15 +55,15 @@ async def menu(event): 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: - r = await borg.send_message(chat, PM) - chat_id = event.from_id - if Var.LESS_SPAMMY is not False: - await response.delete() - if chat_id in PREV_REPLY_MESSAGE: - await PREV_REPLY_MESSAGE[chat_id].delete() - await PREV_REPLY_MESSAGE[userid].delete() - PREV_REPLY_MESSAGE[chat_id] = r - response = await conv.get_response(chat) + r = await borg.send_message(chat, PM) + chat_id = event.from_id + if Var.LESS_SPAMMY is not False: + await response.delete() + if chat_id in PREV_REPLY_MESSAGE: + await PREV_REPLY_MESSAGE[chat_id].delete() + await PREV_REPLY_MESSAGE[userid].delete() + PREV_REPLY_MESSAGE[chat_id] = r + response = await conv.get_response(chat) chat_id = event.from_id response = await conv.get_response(chat) y = response.text