From e9e6c30d05f5ebe84d6dbe8cbc0623afb97026d8 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 5 May 2021 13:58:03 +0200 Subject: [PATCH] Handle bot commands with trailing usernames Closes #139, #615 --- pyrogram/filters.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pyrogram/filters.py b/pyrogram/filters.py index db08f672..aaff1aa1 100644 --- a/pyrogram/filters.py +++ b/pyrogram/filters.py @@ -764,15 +764,21 @@ def command(commands: Union[str, List[str]], prefixes: Union[str, List[str]] = " Examples: when True, command="Start" would trigger /Start but not /start. """ command_re = re.compile(r"([\"'])(.*?)(?