From 1839c233b7b2642ee7b8a52e6957ef77b161295d Mon Sep 17 00:00:00 2001 From: Desiders <47452083+Desiders@users.noreply.github.com> Date: Sat, 18 Mar 2023 14:33:21 +0300 Subject: [PATCH] Change `InlineQueryResultType.MPEG` to `InlineQueryResultType.MPEG4GIF` --- aiogram/enums/inline_query_result_type.py | 2 +- aiogram/types/inline_query_result_cached_mpeg4_gif.py | 2 +- aiogram/types/inline_query_result_mpeg4_gif.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aiogram/enums/inline_query_result_type.py b/aiogram/enums/inline_query_result_type.py index 771dc498..c7066ed2 100644 --- a/aiogram/enums/inline_query_result_type.py +++ b/aiogram/enums/inline_query_result_type.py @@ -11,7 +11,7 @@ class InlineQueryResultType(str, Enum): AUDIO = "audio" DOCUMENT = "document" GIF = "gif" - MPEG = "mpeg" + MPEG4GIF = "mpeg4_gif" PHOTO = "photo" STICKER = "sticker" VIDEO = "video" diff --git a/aiogram/types/inline_query_result_cached_mpeg4_gif.py b/aiogram/types/inline_query_result_cached_mpeg4_gif.py index ab7a2a9b..b4706256 100644 --- a/aiogram/types/inline_query_result_cached_mpeg4_gif.py +++ b/aiogram/types/inline_query_result_cached_mpeg4_gif.py @@ -21,7 +21,7 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult): Source: https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif """ - type: str = Field(InlineQueryResultType.MPEG, const=True) + type: str = Field(InlineQueryResultType.MPEG4GIF, const=True) """Type of the result, must be *mpeg4_gif*""" id: str """Unique identifier for this result, 1-64 bytes""" diff --git a/aiogram/types/inline_query_result_mpeg4_gif.py b/aiogram/types/inline_query_result_mpeg4_gif.py index 44a61fee..99f5fdd4 100644 --- a/aiogram/types/inline_query_result_mpeg4_gif.py +++ b/aiogram/types/inline_query_result_mpeg4_gif.py @@ -21,7 +21,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult): Source: https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif """ - type: str = Field(InlineQueryResultType.MPEG, const=True) + type: str = Field(InlineQueryResultType.MPEG4GIF, const=True) """Type of the result, must be *mpeg4_gif*""" id: str """Unique identifier for this result, 1-64 bytes"""