From 387e3ae8e9cbf61ef125e31756085c41977361c2 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Thu, 19 Sep 2019 00:07:32 +0600 Subject: [PATCH] Add InlineQueryResultPhoto --- src/core/types/inline_query_result_photo.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/core/types/inline_query_result_photo.rs diff --git a/src/core/types/inline_query_result_photo.rs b/src/core/types/inline_query_result_photo.rs new file mode 100644 index 00000000..ed18a45f --- /dev/null +++ b/src/core/types/inline_query_result_photo.rs @@ -0,0 +1,19 @@ +use super::inline_keyboard_markup::InlineKeyboardMarkup; +use super::input_message_content::InputMessageContent; + +#[derive(Debug, Deserialize, Clone, PartialEq)] +pub struct InlineQueryResultCachedPhoto { + #[serde(rename = "type")] + pub query_type: String, + pub id: String, + pub photo_url: String, + pub thumb_url: String, + pub photo_width: Option, + pub photo_height: Option, + pub title: Option, + pub description: Option, + pub caption: Option, + pub parse_mode: Option, + pub reply_markup: Option, + pub input_message_content: Option, +} \ No newline at end of file