From c44be58f3629e90248de20ef9a53f284534feee4 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Fri, 22 Nov 2024 14:14:39 +0200 Subject: [PATCH] code review comment --- src/api_params.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/api_params.rs b/src/api_params.rs index 5bb122c..83e9286 100644 --- a/src/api_params.rs +++ b/src/api_params.rs @@ -55,21 +55,21 @@ impl From for FileUpload { #[serde(tag = "type")] pub enum InlineQueryResult { #[serde(rename = "audio")] - AudioOrCachedAudio(InlineQueryResultAudioOrCachedAudio), + Audio(InlineQueryResultAudioOrCachedAudio), #[serde(rename = "document")] - DocumentOrCachedDocument(InlineQueryResultDocumentOrCachedDocument), + Document(InlineQueryResultDocumentOrCachedDocument), #[serde(rename = "gif")] - GifOrCachedGif(InlineQueryResultGifOrCachedGif), + Gif(InlineQueryResultGifOrCachedGif), #[serde(rename = "mpeg4_gif")] - Mpeg4GifOrCachedMpeg4Gif(InlineQueryResultMpeg4GifOrCachedMpeg4Gif), + Mpeg4Gif(InlineQueryResultMpeg4GifOrCachedMpeg4Gif), #[serde(rename = "photo")] - PhotoOrCachedPhoto(InlineQueryResultPhotoOrCachedPhoto), + Photo(InlineQueryResultPhotoOrCachedPhoto), #[serde(rename = "sticker")] CachedSticker(InlineQueryResultCachedSticker), #[serde(rename = "video")] - VideoOrCachedVideo(InlineQueryResultVideoOrCachedVideo), + Video(InlineQueryResultVideoOrCachedVideo), #[serde(rename = "voice")] - VoiceOrCachedVoice(InlineQueryResultVoiceOrCachedVoice), + Voice(InlineQueryResultVoiceOrCachedVoice), #[serde(rename = "article")] Article(InlineQueryResultArticle), #[serde(rename = "contract")]