mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 00:56:19 +00:00
Fix api compiling
This commit is contained in:
parent
3b98e7a5f7
commit
2a3725e605
@ -258,11 +258,14 @@ def start(format: bool = False):
|
|||||||
|
|
||||||
args = ARGS_RE.findall(line)
|
args = ARGS_RE.findall(line)
|
||||||
|
|
||||||
# Fix arg name being "self" (reserved python keyword)
|
# Fix arg name being reserved python keyword
|
||||||
for i, item in enumerate(args):
|
for i, item in enumerate(args):
|
||||||
if item[0] == "self":
|
if item[0] == "self":
|
||||||
args[i] = ("is_self", item[1])
|
args[i] = ("is_self", item[1])
|
||||||
|
|
||||||
|
if item[0] == "from":
|
||||||
|
args[i] = ("from_peer", item[1])
|
||||||
|
|
||||||
combinator = Combinator(
|
combinator = Combinator(
|
||||||
section=section,
|
section=section,
|
||||||
qualname=qualname,
|
qualname=qualname,
|
||||||
|
Loading…
Reference in New Issue
Block a user