teloxide_core/payloads/
stop_message_live_location.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{BusinessConnectionId, Message, MessageId, Recipient, ReplyMarkup};
6
7impl_payload! {
8    /// Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to [`StopMessageLiveLocation`]. On success, the edited Message is returned.
9    ///
10    /// See also: [`StopMessageLiveLocationInline`](crate::payloads::StopMessageLiveLocationInline)
11    ///
12    /// [`Message`]: crate::types::Message
13    /// [`StopMessageLiveLocation`]: crate::payloads::StopMessageLiveLocation
14    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
15    pub StopMessageLiveLocation (StopMessageLiveLocationSetters) => Message {
16        required {
17            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
18            pub chat_id: Recipient [into],
19            /// Identifier of the message to edit
20            #[serde(flatten)]
21            pub message_id: MessageId,
22        }
23        optional {
24            /// Unique identifier of the business connection on behalf of which the message to be edited was sent
25            pub business_connection_id: BusinessConnectionId,
26            /// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account.
27            ///
28            /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
29            /// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
30            pub reply_markup: ReplyMarkup [into],
31        }
32    }
33}