File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -630,6 +630,7 @@ class StickerType(Enum):
630
630
class StickerFormatType (Enum ):
631
631
"""Sticker format Type"""
632
632
633
+ unknown = 0
633
634
png = 1
634
635
apng = 2
635
636
lottie = 3
@@ -642,9 +643,9 @@ def file_extension(self) -> str:
642
643
StickerFormatType .apng : "png" ,
643
644
StickerFormatType .lottie : "json" ,
644
645
StickerFormatType .gif : "gif" ,
646
+ StickerFormatType .unknown : "unknown" ,
645
647
}
646
- # TODO: Improve handling of unknown sticker format types if possible
647
- return lookup .get (self , "png" )
648
+ return lookup .get (self , StickerFormatType .unknown )
648
649
649
650
650
651
class InviteTarget (Enum ):
@@ -833,8 +834,8 @@ def from_datatype(cls, datatype):
833
834
if issubclass (datatype , float ):
834
835
return cls .number
835
836
836
- from .commands .context import ApplicationContext # noqa: PLC0415
837
- from .ext .bridge import BridgeContext # noqa: PLC0415
837
+ from .commands .context import ApplicationContext
838
+ from .ext .bridge import BridgeContext
838
839
839
840
if not issubclass (
840
841
datatype , (ApplicationContext , BridgeContext )
You can’t perform that action at this time.
0 commit comments