Use code generator to fix types

This commit is contained in:
Desiders 2023-03-19 00:41:00 +03:00
parent 0614dc72fd
commit 20d9855851
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ class InlineQueryResultType(str, Enum):
AUDIO = "audio"
DOCUMENT = "document"
GIF = "gif"
MPEG4GIF = "mpeg4_gif"
MPEG4_GIF = "mpeg4_gif"
PHOTO = "photo"
STICKER = "sticker"
VIDEO = "video"

View file

@ -21,7 +21,7 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult):
Source: https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif
"""
type: str = Field(InlineQueryResultType.MPEG4GIF, const=True)
type: str = Field(InlineQueryResultType.MPEG4_GIF, const=True)
"""Type of the result, must be *mpeg4_gif*"""
id: str
"""Unique identifier for this result, 1-64 bytes"""

View file

@ -21,7 +21,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult):
Source: https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
"""
type: str = Field(InlineQueryResultType.MPEG4GIF, const=True)
type: str = Field(InlineQueryResultType.MPEG4_GIF, const=True)
"""Type of the result, must be *mpeg4_gif*"""
id: str
"""Unique identifier for this result, 1-64 bytes"""