diff --git a/src/lib/gramjs/tl/api.d.ts b/src/lib/gramjs/tl/api.d.ts index 7c21e80eb..8ac26e9ad 100644 --- a/src/lib/gramjs/tl/api.d.ts +++ b/src/lib/gramjs/tl/api.d.ts @@ -12603,7 +12603,7 @@ namespace Api { }; export class GetIsPremiumRequiredToContact extends Request, Bool> { + }>, Bool[]> { id: Api.TypeInputUser[]; }; } diff --git a/src/lib/gramjs/tl/types-generator/template.js b/src/lib/gramjs/tl/types-generator/template.js index 8cb8bb7e1..5fb2c8957 100644 --- a/src/lib/gramjs/tl/types-generator/template.js +++ b/src/lib/gramjs/tl/types-generator/template.js @@ -106,22 +106,22 @@ ${indent}};`.trim() function renderValueType(type, isVector, isTlType) { if (RAW_TYPES.has(type)) { - return type + return isVector ? `${type}[]` : type; } let resType if (typeof type === 'string' && isTlType) { - resType = renderTypeName(type) + resType = renderTypeName(type); } else { - resType = type + resType = type; } if (isVector) { - resType = `${resType}[]` + resType = `${resType}[]`; } - return resType + return resType; } function renderTypeName(typeName) {