2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 06:16:06 +00:00

Fix Message.command when case is different (#757)

* Fix Message.command when case is different

* Update test_command.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
This commit is contained in:
Alisson Lauffer
2021-09-14 13:33:54 -03:00
committed by GitHub
parent fdbab8cc87
commit 02a3969101
2 changed files with 6 additions and 1 deletions

View File

@@ -107,6 +107,10 @@ async def test_with_args():
await f(c, m)
assert m.command == ["start"]
m = Message("/StArT")
await f(c, m)
assert m.command == ["start"]
m = Message("/start@username")
await f(c, m)
assert m.command == ["start"]