From 16b5473daed036a14629ff7887716ae949482f97 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Thu, 19 Sep 2019 00:03:14 +0600 Subject: [PATCH] Add InlineQueryResult --- src/core/types/inline_query_result.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/core/types/inline_query_result.rs diff --git a/src/core/types/inline_query_result.rs b/src/core/types/inline_query_result.rs new file mode 100644 index 00000000..99be2d4b --- /dev/null +++ b/src/core/types/inline_query_result.rs @@ -0,0 +1,25 @@ +use super::inline_query_result_cached_audio::InlineQueryResultCachedAudio; + +#[derive(Debug, Deserialize, Serialize, Eq, Clone, PartialEq, Hash)] +pub enum InlineQueryResult { + CachedAudio(InlineQueryResultCachedAudio), + CachedDocument(InlineQueryResultCachedDocument), + CachedGif(InlineQueryResultCachedGif), + CachedMpeg4Gif(InlineQueryResultCachedMpeg4Gif), + CachedPhoto(InlineQueryResultCachedPhoto), + CachedSticker(InlineQueryResultCachedSticker), + CachedVideo(InlineQueryResultCachedVideo), + CachedVoice(InlineQueryResultCachedVoice), + Article(InlineQueryResultArticle), + Audio(InlineQueryResultAudio), + Contact(InlineQueryResultContact), + Game(InlineQueryResultGame), + Document(InlineQueryResultDocument), + Gif(InlineQueryResultGif), + Location(InlineQueryResultLocation), + Mpeg4Gif(InlineQueryResultMpeg4Gif), + Photo(InlineQueryResultPhoto), + Venue(InlineQueryResultVenue), + Video(InlineQueryResultVideo), + Voice(InlineQueryResultVoice), +}