@@ -397,7 +397,7 @@ public static function generate(int|string $layer, string $inputSchema, string $
397397 $ locations ['document ' ][] = new CallOp (
398398 'users.getSavedMusicByID ' ,
399399 [
400- 'id ' => new GetInputUserOp (new Path ([[$ m , 'id ' ]], true )),
400+ 'id ' => new GetInputUserOp (new Path ([[$ m , 'id ' ]], true , ' user_id ' )),
401401 'documents ' => new ArrayOp (
402402 new ConstructorOp (
403403 'inputDocument ' ,
@@ -412,6 +412,23 @@ public static function generate(int|string $layer, string $inputSchema, string $
412412 'fileSourceSavedMusic '
413413 );
414414 }
415+ $ locations ['userFull ' ][] = new CallOp (
416+ 'users.getSavedMusicByID ' ,
417+ [
418+ 'id ' => new GetInputUserOp (new Path ([['userFull ' , 'id ' ]], customName: 'user_id ' )),
419+ 'documents ' => new ArrayOp (
420+ new ConstructorOp (
421+ 'inputDocument ' ,
422+ [
423+ 'id ' => new CopyOp ([['userFull ' , 'saved_music ' , Path::FLAG_IF_ABSENT_ABORT ], ['document ' , 'id ' ]]),
424+ 'access_hash ' => new CopyOp ([['userFull ' , 'saved_music ' , Path::FLAG_IF_ABSENT_ABORT ], ['document ' , 'access_hash ' ]]),
425+ 'file_reference ' => new PrimitiveLiteralOp ('bytes ' , '' ),
426+ ],
427+ ),
428+ ),
429+ ],
430+ 'fileSourceSavedMusic '
431+ );
415432
416433 // Ignore these for now
417434 foreach (['payments.ResaleStarGifts ' , 'payments.StarGiftUpgradePreview ' , 'StarGift ' , 'StarGiftCollection ' , 'payments.StarGiftCollections ' ] as $ type ) {
0 commit comments