mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 06:16:06 +00:00
Remove trailing username when adding args to Message.command
Fixes #676
This commit is contained in:
@@ -107,6 +107,10 @@ async def test_with_args():
|
||||
await f(c, m)
|
||||
assert m.command == ["start"] + list("abc")
|
||||
|
||||
m = Message('/start@username a b c')
|
||||
await f(c, m)
|
||||
assert m.command == ["start"] + list("abc")
|
||||
|
||||
m = Message("/start 'a b' c")
|
||||
await f(c, m)
|
||||
assert m.command == ["start", "a b", "c"]
|
||||
|
Reference in New Issue
Block a user