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:
@@ -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"]
|
||||
|
Reference in New Issue
Block a user