From 8dbeca0fc91cafef59eb8ee30bcfee9ab14a422c Mon Sep 17 00:00:00 2001 From: Advaith Date: Mon, 19 Jul 2021 15:46:12 -0700 Subject: [PATCH] feat(RESTJSONErrorCodes): add sticker errors (#155) Co-authored-by: Vlad Frangu Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- deno/rest/common.ts | 8 ++++++-- rest/common.ts | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/deno/rest/common.ts b/deno/rest/common.ts index 9e613a04..fd0512f7 100644 --- a/deno/rest/common.ts +++ b/deno/rest/common.ts @@ -130,6 +130,10 @@ export enum RESTJSONErrorCodes { MaximumActiveAnnouncementThreads, InvalidJSONForUploadedLottieFile = 170001, - - LottieAnimationMaximumDimensionsExceeded = 170005, + UploadedLottiesCannotContainRasterizedImages, + StickerMaximumFramerateExceeded, + StickerFrameCountExceedsMaximumOf1000Frames, + LottieAnimationMaximumDimensionsExceeded, + StickerFramerateIsTooSmallOrTooLarge, + StickerAnimationDurationExceedsMaximumOf5Seconds, } diff --git a/rest/common.ts b/rest/common.ts index 8d3f5dce..12cfc5fc 100644 --- a/rest/common.ts +++ b/rest/common.ts @@ -130,6 +130,10 @@ export const enum RESTJSONErrorCodes { MaximumActiveAnnouncementThreads, InvalidJSONForUploadedLottieFile = 170001, - - LottieAnimationMaximumDimensionsExceeded = 170005, + UploadedLottiesCannotContainRasterizedImages, + StickerMaximumFramerateExceeded, + StickerFrameCountExceedsMaximumOf1000Frames, + LottieAnimationMaximumDimensionsExceeded, + StickerFramerateIsTooSmallOrTooLarge, + StickerAnimationDurationExceedsMaximumOf5Seconds, }