From 40321467dd4579187efff027249d90169790a30f Mon Sep 17 00:00:00 2001 From: nextel Date: Thu, 12 Sep 2019 18:33:35 +0300 Subject: [PATCH] fix review mistakes --- src/core/requests/stop_message_live_location.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/requests/stop_message_live_location.rs b/src/core/requests/stop_message_live_location.rs index 05760227..ee6777a6 100644 --- a/src/core/requests/stop_message_live_location.rs +++ b/src/core/requests/stop_message_live_location.rs @@ -19,19 +19,19 @@ struct StopMessageLiveLocation<'a> { /// the target chat or username of the target channel (in the format /// @channelusername) #[serde(skip_serializing_if="Option::is_none")] - chat_id: Option, + pub chat_id: Option, /// Required if inline_message_id is not specified. Identifier of the /// message with live location to stop #[serde(skip_serializing_if="Option::is_none")] - message_id: Option, + pub message_id: Option, /// Required if chat_id and message_id are not specified. Identifier of the /// inline message #[serde(skip_serializing_if="Option::is_none")] - inline_message_id: Option, + pub inline_message_id: Option, /// A JSON-serialized object InlineKeyboardMarkup for a new inline /// keyboard. #[serde(skip_serializing_if="Option::is_none")] - reply_markup: Option, + pub reply_markup: Option, } impl<'a> Request<'a> for StopMessageLiveLocation<'a> { @@ -53,7 +53,6 @@ impl<'a> Request<'a> for StopMessageLiveLocation<'a> { impl<'a> StopMessageLiveLocation<'a> { fn new( ctx: RequestContext<'a>, - chat_id: ChatId, ) -> Self { Self { ctx,