diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index e1f35e8f..fab72c16 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -205,8 +205,8 @@ class Compiler: else: arg_type = "List of :class:`pyrogram.api.types.{}`".format( ".".join( - arg_type.split(".")[:-1] - + [self.caml(arg_type.split(".")[-1])] + sub_type.split(".")[:-1] + + [self.caml(sub_type.split(".")[-1])] ) ) else: