diff --git a/packages/tlschema/src/assets/TLImageAsset.ts b/packages/tlschema/src/assets/TLImageAsset.ts index ebd004558..27fd614ba 100644 --- a/packages/tlschema/src/assets/TLImageAsset.ts +++ b/packages/tlschema/src/assets/TLImageAsset.ts @@ -27,7 +27,7 @@ export const imageAssetValidator: T.Validator = createAssetValidat name: T.string, isAnimated: T.boolean, mimeType: T.string.nullable(), - src: T.srcUrl, + src: T.srcUrl.nullable(), }) ) diff --git a/packages/tlschema/src/assets/TLVideoAsset.ts b/packages/tlschema/src/assets/TLVideoAsset.ts index 6946dfcf8..bf8ea9003 100644 --- a/packages/tlschema/src/assets/TLVideoAsset.ts +++ b/packages/tlschema/src/assets/TLVideoAsset.ts @@ -27,7 +27,7 @@ export const videoAssetValidator: T.Validator = createAssetValidat name: T.string, isAnimated: T.boolean, mimeType: T.string.nullable(), - src: T.srcUrl, + src: T.srcUrl.nullable(), }) )