mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 06:16:06 +00:00
Fix non-flags parameters with the same name "flags" being treated as TL flags
This commit is contained in:
@@ -132,7 +132,7 @@ def sort_args(args):
|
||||
args.remove(i)
|
||||
|
||||
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)
|
||||
|
||||
return args + flags
|
||||
|
Reference in New Issue
Block a user