Added StickerFormat enum

This commit is contained in:
Alex Root Junior 2023-03-09 00:51:10 +02:00
parent 9d30a8f48c
commit c7af01c70d
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
5 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,10 @@
name: StickerFormat
description: |
Format of the sticker
Source: https://core.telegram.org/bots/api#createnewstickerset
parse:
category: methods
entity: createNewStickerSet
attribute: sticker_format
regexp: "'([a-z_]+)'"

View file

@ -14,6 +14,7 @@ from .poll_type import PollType
from .sticker_type import StickerType
from .topic_icon_color import TopicIconColor
from .update_type import UpdateType
from .sticker_format import StickerFormat
__all__ = (
"BotCommandScopeType",
@ -29,6 +30,7 @@ __all__ = (
"MessageEntityType",
"ParseMode",
"PollType",
"StickerFormat",
"StickerType",
"TopicIconColor",
"UpdateType",

View file

@ -0,0 +1,13 @@
from enum import Enum
class StickerFormat(str, Enum):
"""
Format of the sticker
Source: https://core.telegram.org/bots/api#createnewstickerset
"""
STATIC = "static"
ANIMATED = "animated"
VIDEO = "video"

View file

@ -21,6 +21,7 @@ Here is list of all available enums:
message_entity_type
parse_mode
poll_type
sticker_format
sticker_type
topic_icon_color
update_type

View file

@ -0,0 +1,9 @@
#############
StickerFormat
#############
.. automodule:: aiogram.enums.sticker_format
:members:
:member-order: bysource
:undoc-members: True