pub struct StopMessageLiveLocation {
pub chat_id: Option<ChatId>,
pub message_id: Option<i64>,
pub inline_message_id: Option<String>,
pub reply_markup: Option<InlineKeyboardMarkup>,
}
Expand description
Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.
Fields§
§chat_id: Option<ChatId>
Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_id: Option<i64>
Required if inline_message_id is not specified. Identifier of the message with live location to stop
inline_message_id: Option<String>
Required if chat_id and message_id are not specified. Identifier of the inline message
reply_markup: Option<InlineKeyboardMarkup>
A JSON-serialized object for a new inline keyboard.
Implementations§
Trait Implementations§
Source§impl Clone for StopMessageLiveLocation
impl Clone for StopMessageLiveLocation
Source§fn clone(&self) -> StopMessageLiveLocation
fn clone(&self) -> StopMessageLiveLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StopMessageLiveLocation
impl Debug for StopMessageLiveLocation
Source§impl<'de> Deserialize<'de> for StopMessageLiveLocation
impl<'de> Deserialize<'de> for StopMessageLiveLocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Methods for StopMessageLiveLocation
impl Methods for StopMessageLiveLocation
Auto Trait Implementations§
impl Freeze for StopMessageLiveLocation
impl RefUnwindSafe for StopMessageLiveLocation
impl Send for StopMessageLiveLocation
impl Sync for StopMessageLiveLocation
impl Unpin for StopMessageLiveLocation
impl UnwindSafe for StopMessageLiveLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more