8000 Update replace.py · pyrogram/plugins@01e6271 · GitHub
[go: up one dir, main page]

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

Commit 01e6271

Browse files
authored
Update replace.py
1 parent 0d9a5c3 commit 01e6271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/replace/replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@Client.on_message(Filters.command("r", prefix="!") & Filters.reply & ~Filters.edited & Filters.group)
2626
def r(client, message):
2727
if len(message.command) > 1:
28-
colength = len("s") + len(prefix)
28+
colength = len("s") + len("!")
2929
query = str(message.text)[colength:].lstrip()
3030
eventsplit=query.split("/")
3131
result="**You mean:**\n{}".format(message.reply_to_message.text.replace(eventsplit[0],eventsplit[1]))

0 commit comments

Comments
 (0)
0