mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-24 15:59:18 +00:00
Fix non-flags parameters with the same name "flags" being treated as TL flags
This commit is contained in:
parent
82b029c3bf
commit
d6c80ff0f9
@ -132,7 +132,7 @@ def sort_args(args):
|
|||||||
args.remove(i)
|
args.remove(i)
|
||||||
|
|
||||||
for i in args[:]:
|
for i in args[:]:
|
||||||
if re.match(r"flags\d?", i[0]):
|
if re.match(r"flags\d?", i[0]) and i[1] == "#":
|
||||||
args.remove(i)
|
args.remove(i)
|
||||||
|
|
||||||
return args + flags
|
return args + flags
|
||||||
|
Loading…
Reference in New Issue
Block a user