From f96f9a3a2b543bf364975b85e42f76e0c125696d Mon Sep 17 00:00:00 2001 From: Waffle Date: Thu, 19 Sep 2019 00:44:23 +0300 Subject: [PATCH] Fix `InlineQueryResultLocation` (Add `Option<>` to optional fields) --- src/core/types/inline_query_result_location.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/types/inline_query_result_location.rs b/src/core/types/inline_query_result_location.rs index dc06c07b..c4b5d296 100644 --- a/src/core/types/inline_query_result_location.rs +++ b/src/core/types/inline_query_result_location.rs @@ -6,11 +6,11 @@ pub struct InlineQueryResultLocation { pub latitude: f64, pub longitude: f64, pub title: String, - pub live_period: i32, - pub reply_markup: InlineKeyboardMarkup, - pub input_message_content: InputMessageContent, - pub thumb_url: String, - pub thumb_width: i32, - pub thumb_height: i32, + pub live_period: Option, + pub reply_markup: Option, + pub input_message_content: Option, + pub thumb_url: Option, + pub thumb_width: Option, + pub thumb_height: Option, } \ No newline at end of file