mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added StickerFormat enum
This commit is contained in:
parent
9d30a8f48c
commit
c7af01c70d
5 changed files with 35 additions and 0 deletions
10
.butcher/enums/StickerFormat.yml
Normal file
10
.butcher/enums/StickerFormat.yml
Normal 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_]+)'"
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
13
aiogram/enums/sticker_format.py
Normal file
13
aiogram/enums/sticker_format.py
Normal 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"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
9
docs/api/enums/sticker_format.rst
Normal file
9
docs/api/enums/sticker_format.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#############
|
||||
StickerFormat
|
||||
#############
|
||||
|
||||
|
||||
.. automodule:: aiogram.enums.sticker_format
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
Loading…
Add table
Add a link
Reference in a new issue