diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 6566bc8e..64e88c9d 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -67,7 +67,7 @@ def get_docstring_arg_type(t: str, is_list: bool = False, is_pyrogram_type: bool n = len(t) - 1 t = (("e" if is_list else "E") + "ither " if n else "") + ", ".join( - ":obj:`~{}.{}`".format( + ":obj:`{1} <{0}.{1}>`".format( "pyrogram.types" if is_pyrogram_type else "pyrogram.api.types", i.replace("pyrogram.", "") ) @@ -88,7 +88,7 @@ def get_references(t: str): n = len(t) - 1 t = ", ".join( - ":obj:`~pyrogram.api.functions.{}`".format(i) + ":obj:`{0} `".format(i) for i in t )