2
0
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:
Dan
2021-05-06 13:02:26 +02:00
parent 1d940b96a3
commit 4fc4501445
2 changed files with 9 additions and 5 deletions

View File

@@ -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"]