Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

Commit 917d814

Browse files
committed
Userbot: Improve an automated send message
1 parent 07d0a2c commit 917d814

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

userbot/modules/pmpermit.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717

1818
# ========================= CONSTANTS ============================
1919
UNAPPROVED_MSG = (
20-
"`HeY! This is an automated message.\n\n`"
21-
"`I haven't approved you to PM yet.`"
22-
"`Please wait for me to look in, I mostly approve PMs.\n\n`"
23-
"`Until then, please don't spam my Mastor's PM, you'll get blocked and reported if you do so!`")
20+
"`Hey! Sorry, I haven't approved you to PM yet.`\n"
21+
"`Please wait for me to look in`\n"
22+
"`Until then, please don't spam my PM..`\n"
23+
"`Thank you for being patient.`\n\n"
24+
"`*This is an automated message`\n"
25+
"`💖미나💖`")
2426
# =================================================================
2527

2628

@@ -69,8 +71,8 @@ async def permitpm(event):
6971

7072
if COUNT_PM[event.chat_id] > 4:
7173
await event.respond(
72-
"`You were spamming my Mastor's PM, which I didn't like.`\n"
73-
"`You have been BLOCKED and reported as SPAM, until further notice.`"
74+
"`I didn't like you spamming my PM.`\n"
75+
"`You have been BLOCKED and reported as SPAM, wait a minute until i online.`"
7476
)
7577

7678
try:
@@ -238,12 +240,12 @@ async def blockpm(block):
238240
aname = replied_user.id
239241
name0 = str(replied_user.first_name)
240242
await block.client(BlockRequest(replied_user.id))
241-
await block.edit("`You've been blocked!`")
243+
await block.edit("`You has been blocked!`")
242244
uid = replied_user.id
243245
else:
244246
await block.client(BlockRequest(block.chat_id))
245247
aname = await block.client.get_entity(block.chat_id)
246-
await block.edit("`You've been blocked!`")
248+
await block.edit("`You has been blocked!`")
247249
name0 = str(aname.first_name)
248250
uid = block.chat_id
249251

@@ -268,7 +270,7 @@ async def unblockpm(unblock):
268270
replied_user = await unblock.client.get_entity(reply.from_id)
269271
name0 = str(replied_user.first_name)
270272
await unblock.client(UnblockRequest(replied_user.id))
271-
await unblock.edit("`You have been unblocked.`")
273+
await unblock.edit("`You has been unblocked.`")
272274

273275
if BOTLOG:
274276
await unblock.client.send_message(

0 commit comments

Comments
 (0)