Add sticker support

This commit is contained in:
Zomatree
2020-11-23 10:09:20 +00:00
committed by GitHub
parent f9b5cead31
commit 344cb96c5d
6 changed files with 178 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ __all__ = (
'WebhookType',
'ExpireBehaviour',
'ExpireBehavior',
'StickerType'
)
def _create_value_cls(name):
@@ -455,3 +456,8 @@ def try_enum(cls, val):
return cls._enum_value_map_[val]
except (KeyError, TypeError, AttributeError):
return val
class StickerType(Enum):
png = 1
apng = 2
lottie = 3