Add support for GIF sticker type

This commit is contained in:
Rapptz
2023-01-10 18:18:43 -05:00
parent 48ef01204c
commit 24495e5505
2 changed files with 8 additions and 0 deletions

View File

@ -535,6 +535,7 @@ class StickerFormatType(Enum):
png = 1
apng = 2
lottie = 3
gif = 4
@property
def file_extension(self) -> str:
@ -543,6 +544,7 @@ class StickerFormatType(Enum):
StickerFormatType.png: 'png',
StickerFormatType.apng: 'png',
StickerFormatType.lottie: 'json',
StickerFormatType.gif: 'gif',
}
# fmt: on
return lookup[self]